我试图在HPC中运行CFD模拟,并且想从Python导入Wall Clock Time。谁能建议我最好的方法。
Python代码
# Python variables
walltime = 10000 #sec
Slurm File
# ===========================================
# Code to import from python.
# ===========================================
#!/bin/bash
#SBATCH --export=NONE #Do not propagate environment
#SBATCH --get-user-env=L #Replicate login environment
#SBATCH --job-name="CFD Simulation" #Set the job name
#SBATCH --time=$walltime #Set the wall clock limit