Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations The Obturator on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gfortran link with abaqus on win7

Status
Not open for further replies.

etlau

Mechanical
Apr 21, 2011
2
Does anyone know how to modify abaqus_v6.env to link gfortran with abaqus(6.10) on win 7 (32)?

Thanks
 
Replies continue below

Recommended for you

It's a matter of:
1. installing gfortran and gcc / g++ (duh)
2. change all mentions of ifort and icpc to gfortran and gcc and change the compiler flags
Other than that I can't help (on linux)
 
Thanks for relply.
I installed gcc from The abaqus_v6.env looks a little different, can you take a look of it?
and also,do you know how to test if gfortran works on windows with a simple way?
Thanks.
#
# System-Wide Abaqus Environment File
# -------------------------------------
scratch="d:/temp"
standard_parallel = ALL
mp_mode = MPI
split_dat = ON
mp_file_system = (DETECT,DETECT)
mp_environment_export = ('MPI_PROPAGATE_TSTP',
'ABA_CM_BUFFERING',
'ABA_CM_BUFFERING_LIMIT',
'ABA_ITERATIVE_SOLVER_VERBOSE',
'ABA_DMPSOLVER_BWDPARALLELOFF',
'ABA_ELP_SURFACE_SPLIT',
'ABA_ELP_SUSPEND',
'ABA_HOME',
'ABA_MEMORY_MODE',
'ABA_MPI_MESSAGE_TRACKING',
'ABA_MPI_VERBOSE_LEVEL',
'ABA_PATH',
'ABA_RESOURCE_MONITOR',
'ABA_RESOURCE_USEMALLINFO',
'ABAQUS_LANG',
'ABAQUSLM_LICENSE_FILE',
'ABQ_CRTMALLOC',
'ABQ_DATACHECK',
'ABQ_RECOVER',
'ABQ_RESTART',
'ABQ_SPLITFILE',
'ABQ_XPL_WINDOWDUMP',
'ABQ_XPL_PARTITIONSIZE',
'ABQLMHANGLIMIT',
'ABQLMQUEUE',
'ABQLMUSER',
'CCI_RENDEZVOUS',
'DOMAIN',
'DOMAIN_CPUS',
'DOUBLE_PRECISION',
'FLEXLM_DIAGNOSTICS',
'FOR0006',
'FOR0064',
'LD_PRELOAD',
'MP_NUMBER_OF_THREADS',
'MPC_GANG',
'MPI_RDMA_NENVELOPE',
'MPI_SOCKBUFSIZE',
'MPI_WORKDIR',
'MPCCI_SERVER',
'MPCCI_INITIAL_EXCHANGE',
'_MPCCI_CCM_CODE_IDS',
'_MPCCI_CODE_IDSTRING',
'ABAQUS_CCI_DEBUG',
'NCPUS',
'OMP_DYNAMIC',
'OMP_NUM_THREADS',
'OUTDIR',
'PAIDUP',
'PARALLEL_METHOD',
'RAIDEV_NDREG_LAZYMEM',
'ABA_SYMBOLIC_GENERALCOLLAPSE',
'ABA_SYMBOLIC_GENERAL_MAXCLIQUERANK',
'ABA_ADM_MINIMUMINCREASE',
'ABA_ADM_MINIMUMDECREASE',
'IPATH_NO_CPUAFFINITY',
'MALLOC_MMAP_THRESHOLD_',)

memory='50%'

compile_cpp=['CL', '/c', '/nologo', '/W0', '/MD', '/DABQ_NTI_NET', '/DABQ_WIN86_32',
'/TP', '/EHs', '/GS', '/DNDEBUG', '/DWIN32', '/DTP_IP', '/D_CONSOLE',
'/DNTI', '/DFLT_LIC', '/DOL_DOC', '/D__LIB__', '/DHKS_NT',
'/DFAR=', '/D_WINDOWS', '/O1', '/Gs', '/I%I']

compile_fortran=['gfortran', '/c', '/Gm', '/recursive', '/nologo', '/heap-arrays:1', '/include:%I']
link_sl='cmd /c "LINK /nologo /INCREMENTAL:NO /subsystem:console /machine:X86 /NODEFAULTLIB:LIBC.LIB /NODEFAULTLIB:LIBCMT.LIB /DEFAULTLIB:OLDNAMES.LIB /DEFAULTLIB:LIBIFCOREMD.LIB /DEFAULTLIB:LIBIFPORTMD.LIB /DEFAULTLIB:LIBMMD.LIB /DEFAULTLIB:MSVCRT.LIB /DEFAULTLIB:kernel32.lib /DEFAULTLIB:user32.lib /DEFAULTLIB:advapi32.lib /FIXED:NO /dll /def:%E /out:%U %F %A %B &&mt /manifest %U.manifest /outputresource:%U;2 && del %U.manifest"'
link_exe='cmd /c "LINK /nologo /INCREMENTAL:NO /subsystem:console /machine:X86 /NODEFAULTLIB:LIBC.LIB /NODEFAULTLIB:LIBCMT.LIB /DEFAULTLIB:OLDNAMES.LIB /DEFAULTLIB:LIBIFCOREMD.LIB /DEFAULTLIB:LIBIFPORTMD.LIB /DEFAULTLIB:LIBMMD.LIB /DEFAULTLIB:SVML_DISPMT.LIB /DEFAULTLIB:MSVCRT.LIB /DEFAULTLIB:kernel32.lib /DEFAULTLIB:user32.lib /DEFAULTLIB:advapi32.lib /FIXED:NO /LARGEADDRESSAWARE /STACK:20000000 /out:%J %F %M %L %B %O && mt /manifest %J.manifest /outputresource:%J;1 && del %J.manifest"'

#
# If you are attempting to compile C++ programs using Abaqus make utility without a
# Fortran compiler installed on your machine, uncommenting the following
# link_exe command may help resolve any link errors.
#
# link_exe='cmd /c "LINK /nologo /INCREMENTAL:NO /subsystem:console /machine:X86 /STACK:20000000 /NODEFAULTLIB:LIBC.LIB /NODEFAULTLIB:LIBCMT.LIB /DEFAULTLIB:OLDNAMES.LIB /NODEFAULTLIB:LIBIFCOREMD.LIB /NODEFAULTLIB:LIBIFPORTMD.LIB /NODEFAULTLIB:LIBMMD.LIB /DEFAULTLIB:MSVCRT.LIB /DEFAULTLIB:kernel32.lib /DEFAULTLIB:user32.lib /DEFAULTLIB:advapi32.lib /FIXED:NO /LARGEADDRESSAWARE /out:%J %F %M %L %B %O && mt /manifest %J.manifest /outputresource:%J;1 && del %J.manifest"'

mp_mode = THREADS

mp_mpi_implementation = HP
mp_rsh_command = 'dummy %H -l %U -n %C'
mp_mpirun_path = {HP:'C:\\Program Files\\Hewlett-Packard\\HP-MPI\\bin\\mpirun.exe'}

import driverUtils, os
graphicsEnv = driverUtils.locateFile(os.environ['ABA_PATH'],'site','graphicsConfig','env')
if graphicsEnv:
execfile(graphicsEnv)
else:
raise 'Cannot find the graphics configuration environment file (graphicsConfig.env)'

del driverUtils, os, graphicsEnv
abaquslm_license_file="@130.149.89.49"

academic=RESEARCH
 
make a file hello.f with content:

program hello
print *, "Hello World!"
end program hello

(watch the spacing)

and do (in command line)
gfortran hello.f
and run the file
./a.out

for the .env file, I have no idea
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor