I don’t get any errors during submission but it doesn’t look like condition works. It every time submits with
mech_1@slurmdb:1,anshpc@slurmdb:8
Regardless on which solver I choose:
script:
native:
- "--job-name"
- "<%= job_name %>"
- "--ntasks"
- "<%= num_cores %>"
<%-
license = if solver == "Ansys - Linear" || "Ansys - Thermal"
"mech_1@slurmdb:1,anshpc@slurmdb:8"
elsif solver == "Ansys - Non-Linear"
"meba@slurmdb:1,anshpc@slurmdb:8"
elsif solver == "CFX" || "FLUENT"
"cfd_solve_level1@slurmdb:1,cfd_solve_level2@@slurmdb:1,cfd_solve_level3anshpc@slurmdb:8"
else
#solver == "Star-CCM+"
"ccmpower@slurmdb:1"
end
-%>
- "--license"
- "<%= license %>"
I can see in output that solver line changes but not license file:
"native": [
"--job-name",
"lalala",
"--ntasks",
"8",
"--license",
"meba@slurmdb:1,anshpc@slurmdb:8"
]
}
{
"job_name": "lalala",
"solver": "Star-CCM+",
"auto_modules_ansys": "ansys/22.2",
"auto_modules_cfx": "cfx",
"auto_modules_fluent": "fluent",
"auto_modules_starccm": "starccm",
"sim_type": "2ddp",
"bc_queue": "epyc,sky,bdw",
"auto_qos": "lowprio_8job",
"num_cores": "8",
"bc_num_hours": "24",
"select_sim_file": "",
"select_file": "",
"bc_email_on_started": "0"
}
Is anything wrong with my code?