How to submit jobs to a cluster without GUI?

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Johnny Bian

How to submit jobs to a cluster without GUI?

Post by Johnny Bian »

Hello
We have a cluster which has no graphic tools and I want to install CS 2.0.3 on it.
On my own computer ,I have a CAElinux 2011 installed but I only know how to solve problems by GUI.
So, how can i submit jobs to the cluster with Study created by GUI? 
Yvan Fournier

Re: How to submit jobs to a cluster without GUI?

Post by Yvan Fournier »

Hello,
As long as the code was installed on the cluster with support for libxml2 (allowing the reading of xml files) and possibly the MEI library (if mathematical expressions are defined using the GUI), you may simply build identical cases on your workstation and on the cluster (using the same "code_saturne create" command), edit the XML file on your workstation, and copy it to the case's DATA directory on the cluster.
You will also need to update the SCRIPTS/runcase file on the cluster, with the user variables from the workstation. Do not simply overwrite the runcase from one machine to another, as code installation and study paths are hard-coded in the runcase. Also, the runcase file on the cluster may contain additional batch system options that should be defined, base on the job queing system installed on the cluster and detected by Code_Saturne upon install. My favorite tools to merge edits from 1 file into another are gvimdiff (gvim -d $file 1 $file2) an Emac's compare or merge tools, but any decent editor should make this easy.
Obviously, you also need to copy the mesh, optional user Fortran subroutines, and optional data files from the workstation to the cluster.
Best regards,
  Yvan
Johnny Bian

Re: How to submit jobs to a cluster without GUI?

Post by Johnny Bian »

Hi Yvan,
I appreciate your information.But for editing XML file,I can't figure out which line  to modify as I don't see any system-dependent lines.
Below is my XML file generated by CS GUI.Would you kindly point out which line should I modify?

Best regards,
Bian

P.S:My problem is a flow around cylinder about RE=500
Attachments
cylinder500.xml
(6.19 KiB) Downloaded 205 times
Yvan Fournier

Re: How to submit jobs to a cluster without GUI?

Post by Yvan Fournier »

Hello,
By "editing" your XML file, I only meant using the GUI normally and saving an xml file on the workstation.
Only the runcase file needs to be updated/edited manually.
Best regards,
  Yvan
Post Reply