Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
slurm-submit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCL
slurm-submit
Commits
d22b3666
Verified
Commit
d22b3666
authored
1 year ago
by
Reza Housseini
Browse files
Options
Downloads
Patches
Plain Diff
refactor: use loadonly argument instead of server and batch
parent
3f13adfd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
slurm_submit/scripts/ssubmit.py
+5
-7
5 additions, 7 deletions
slurm_submit/scripts/ssubmit.py
with
5 additions
and
7 deletions
slurm_submit/scripts/ssubmit.py
+
5
−
7
View file @
d22b3666
...
...
@@ -130,9 +130,8 @@ class Submit(Slurm):
macro
:
str
=
""
,
podkey
:
str
=
"
szxrGQmT/l6o77a1UnyuyA
"
,
licpath
:
str
=
"
1999@flex.cd-adapco.com
"
,
batch
:
str
=
"
run
"
,
loadonly
:
bool
=
False
,
power
:
bool
=
True
,
server
:
bool
=
False
,
np
:
Union
[
str
,
int
]
=
"
$SLURM_NPROCS
"
,
loc
:
bool
=
True
,
version
:
str
=
"
latest
"
,
...
...
@@ -152,12 +151,10 @@ class Submit(Slurm):
Specify a PoD license key.
licpath:
Specify a license path that overrides the default license path.
batch
:
Run in
batch mode (no UI), commands are mesh, run, step or Java macro files
.
loadonly
:
Run in
server instead of batch mode
.
power:
Use Power Session license option.
server:
Starts the server. The default is to start the client.
np:
Specify the number of processes for parallel simulations.
loc:
...
...
@@ -171,12 +168,13 @@ class Submit(Slurm):
"""
self
.
_add_argument_no_overwrite
(
"
job_name
"
,
f
"
starccm+-
{
Path
(
simfile
).
stem
}
"
)
loadonly_args
=
"
-server
"
if
loadonly
else
"
-batch
"
args
=
[
f
"
-macro
{
macro
}
"
if
macro
else
""
,
f
"
-podkey
{
podkey
}
"
if
podkey
else
""
,
f
"
-licpath
{
licpath
}
"
if
licpath
else
""
,
"
-batchsystem slurm
"
,
f
"
-batch
{
batch
}
"
if
batch
else
""
,
loadonly_args
,
"
-power
"
if
power
else
""
,
"
-server
"
if
server
else
""
,
f
"
-np
{
np
}
"
if
np
else
""
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment