2011-03-29 19:19:50 +05:30
|
|
|
#
|
2011-08-26 12:59:55 +05:30
|
|
|
# DAMASK Abaqus Environment File
|
|
|
|
#
|
|
|
|
# $Id$
|
2011-03-29 19:19:50 +05:30
|
|
|
# ------------------------------------
|
2011-04-06 15:10:39 +05:30
|
|
|
# originally taken from Abaqus ver. 6.9.1
|
|
|
|
#
|
2011-03-29 19:19:50 +05:30
|
|
|
#
|
|
|
|
# Linux (Opteron/EM64T) Settings:
|
|
|
|
#
|
|
|
|
# Compile and Link command for user subroutines.
|
|
|
|
# Compile_cpp and link_exe for Abaqus make utility.
|
|
|
|
#
|
|
|
|
import os, re, glob, driverUtils
|
|
|
|
|
|
|
|
# Always use the newest version
|
|
|
|
fortDefPath = '/'
|
|
|
|
|
|
|
|
dirLst = glob.glob('/opt/intel/fce/*')
|
|
|
|
if dirLst:
|
|
|
|
dirLst.sort()
|
|
|
|
fortDefPath = dirLst[-1] + '/bin'
|
|
|
|
|
|
|
|
fortCompiler = "ifort"
|
|
|
|
|
|
|
|
if os.path.exists(os.path.join(fortDefPath, fortCompiler)):
|
|
|
|
fortCmd = os.path.join(fortDefPath, fortCompiler)
|
|
|
|
else:
|
|
|
|
fortCmd = fortCompiler
|
|
|
|
|
2011-08-26 12:59:55 +05:30
|
|
|
# "-free" to use free-format FORTRAN 90 syntax
|
|
|
|
# "-heap-arrays" increase heap size
|
|
|
|
# "-O3" maximum optimization level
|
|
|
|
# "-fpp" use FORTRAN preprocessor on source code
|
|
|
|
# "-openmp" build with openMP support
|
|
|
|
|
2011-03-29 19:19:50 +05:30
|
|
|
compile_fortran = (fortCmd + " -c -fPIC -auto -extend_source -w90 -w95 " +
|
2011-05-20 04:16:09 +05:30
|
|
|
"-WB -I%I -free -heap-arrays 500000000 -O3 -fpp -openmp")
|
2011-03-29 19:19:50 +05:30
|
|
|
|
2011-05-26 15:08:48 +05:30
|
|
|
# Do not use parts in input file
|
2011-03-29 19:19:50 +05:30
|
|
|
cae_no_parts_input_file=ON
|
|
|
|
|
2011-05-26 15:08:48 +05:30
|
|
|
# You can compile DAMASK into a library to be used with abaqus
|
|
|
|
# it saves you from compiling the subroutine for each job
|
|
|
|
# in this case you do not have to specify a usersubroutine file
|
|
|
|
# however if you still do, the compiled version will override that in the library
|
|
|
|
# Procedure:
|
|
|
|
# 1. create a library directory, e.g. abqlib, in your prefered location
|
|
|
|
# 2. build the library replacing your_prefered_location/abqlib with the correct path to the directory created in 1.:
|
|
|
|
# abaqus make -l DAMASK_abaqus_std.f -dir your_prefered_location/abqlib
|
|
|
|
# abaqus make -l DAMASK_abaqus_exp.f -dir your_prefered_location/abqlib
|
|
|
|
# 3. uncomment the next line after replacing your_prefered_location/abqlib with the correct path to the directory created in 1.
|
|
|
|
# usub_lib_dir='your_prefered_location/abqlib'
|
|
|
|
|
2011-03-29 19:19:50 +05:30
|
|
|
# Remove the temporary names from the namespace
|
|
|
|
del fortCmd
|
|
|
|
del fortDefPath
|
|
|
|
del fortCompiler
|
|
|
|
del dirLst
|
|
|
|
|