@@ -27,10 +27,9 @@ module CLI
2727 CLI_loadFile, & ! < location of the load case file
2828 CLI_materialFile, & ! < location of the material configuration file
2929 CLI_numericsFile, & ! < location of the numerics configuration file
30- solverJobname
30+ CLI_jobName
3131
3232 public :: &
33- getSolverJobname, &
3433 CLI_init
3534
3635contains
@@ -155,7 +154,7 @@ subroutine CLI_init()
155154 case (' -n' , ' --numerics' , ' --numericsconfig' )
156155 numericsArg = val
157156 case (' -j' , ' --job' , ' --jobname' )
158- solverJobname = val
157+ CLI_jobName = val
159158 case (' -w' , ' --wd' , ' --workingdir' , ' --workingdirectory' )
160159 workingDirArg = val
161160#if defined(GRID)
@@ -179,10 +178,10 @@ subroutine CLI_init()
179178 if (allocated (numericsArg)) &
180179 CLI_numericsFile = getPathRelCWD(numericsArg,' numerics configuration' )
181180
182- if (.not. allocated (solverJobname )) then
183- solverJobname = jobname(CLI_geomFile,CLI_loadFile,CLI_materialFile,CLI_numericsFile)
184- elseif (scan (solverJobname ,' /' ) > 0 ) then
185- call IO_error(612 ,ext_msg= solverJobname ,label1= ' --jobname' )
181+ if (.not. allocated (CLI_jobName )) then
182+ CLI_jobName = jobname(CLI_geomFile,CLI_loadFile,CLI_materialFile,CLI_numericsFile)
183+ elseif (scan (CLI_jobName ,' /' ) > 0 ) then
184+ call IO_error(612 ,ext_msg= CLI_jobName ,label1= ' --jobname' )
186185 endif
187186
188187 commandLine = getArg(- 1 )
@@ -197,7 +196,7 @@ subroutine CLI_init()
197196 print ' (1x,a)' , ' Material config: ' // IO_glueDiffering(CLI_materialFile,materialArg)
198197 if (allocated (numericsArg)) &
199198 print ' (1x,a)' , ' Numerics config: ' // IO_glueDiffering(CLI_numericsFile,numericsArg)
200- print ' (1x,a)' , ' Solver job name: ' // getSolverJobname()
199+ print ' (1x,a)' , ' Solver job name: ' // CLI_jobName
201200 if (CLI_restartInc > 0 ) &
202201 print ' (1x,a,i6.6)' , ' Restart from increment: ' , CLI_restartInc
203202
@@ -257,19 +256,6 @@ subroutine setWorkingDirectory(workingDirectoryArg)
257256end subroutine setWorkingDirectory
258257
259258
260- !- -------------------------------------------------------------------------------------------------
261- ! > @brief Return solver job name (MSC.Marc compatible).
262- !- -------------------------------------------------------------------------------------------------
263- function getSolverJobname ()
264-
265- character (len= :), allocatable :: getSolverJobname
266-
267-
268- getSolverJobname = solverJobname
269-
270- end function getSolverJobname
271-
272-
273259!- -------------------------------------------------------------------------------------------------
274260! > @brief Determine solver job name.
275261!- -------------------------------------------------------------------------------------------------
0 commit comments