Fenics/Batch
From ScientificComputing
You can submit a Python FEniCS job with the following command.
sbatch [Slurm options] --wrap="python my_fenics_python_script.py"
Here you need to replace [Slurm options] with Slurm parameters for the resource requirements of the job. Please find a documentation about the parameters of sbatch on the wiki page about the batch system.