support for Marc 2018.x
dropped (not working) support for non-openMP simulations
This commit is contained in:
parent
5a6783e5ad
commit
8102eff1e5
|
@ -9,8 +9,10 @@ class Marc(Solver):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.solver = 'Marc'
|
self.solver = 'Marc'
|
||||||
self.releases = { \
|
self.releases = { \
|
||||||
'2017': ['linux64',''],
|
'2018.1': ['linux64',''],
|
||||||
'2016': ['linux64',''],
|
'2018': ['linux64',''],
|
||||||
|
'2017': ['linux64',''],
|
||||||
|
'2016': ['linux64',''],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -67,7 +69,6 @@ class Marc(Solver):
|
||||||
logfile = None,
|
logfile = None,
|
||||||
compile = False,
|
compile = False,
|
||||||
optimization ='',
|
optimization ='',
|
||||||
openMP = False
|
|
||||||
):
|
):
|
||||||
|
|
||||||
import os,damask.environment
|
import os,damask.environment
|
||||||
|
@ -90,8 +91,7 @@ class Marc(Solver):
|
||||||
user = os.path.join(damaskEnv.relPath('src/'),'DAMASK_marc%s'%release)
|
user = os.path.join(damaskEnv.relPath('src/'),'DAMASK_marc%s'%release)
|
||||||
|
|
||||||
# Define options [see Marc Installation and Operation Guide, pp 23]
|
# Define options [see Marc Installation and Operation Guide, pp 23]
|
||||||
script = 'run_damask%s'%({False:'',True:'_'}[optimization!='' or openMP])
|
script = 'run_damask_%smp'%({False:'',True:optimization}[optimization!=''])
|
||||||
script = script+'%s%s'%({False:'',True:optimization}[optimization!=''],{False:'',True:'mp'}[openMP])
|
|
||||||
|
|
||||||
cmd = os.path.join(self.toolsPath(release),script) + \
|
cmd = os.path.join(self.toolsPath(release),script) + \
|
||||||
' -jid ' + model + '_' + job + \
|
' -jid ' + model + '_' + job + \
|
||||||
|
|
Loading…
Reference in New Issue