{"id":944,"date":"2023-01-24T08:49:10","date_gmt":"2023-01-24T08:49:10","guid":{"rendered":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/?page_id=944"},"modified":"2023-02-01T12:43:55","modified_gmt":"2023-02-01T12:43:55","slug":"code_saturne-v7-0-2","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/software\/applications\/code_saturne\/code_saturne-v7-0-2\/","title":{"rendered":"Code_Saturne v7.0.2"},"content":{"rendered":"<h2>Running the application<\/h2>\n<p>Code_Saturne v7.0.2 can be used after executing on the login node:<\/p>\n<pre>module load code_saturne\/7.0.2-iomkl-2020.02-python-3.8.2\r\n<\/pre>\n<p>Similarly, the GUI of Code_Saturne v7.0.2 can be launched by typing:<\/p>\n<pre>code_saturne gui setup.xml \r\n<\/pre>\n<p>or<\/p>\n<pre>.\/code_saturne setup.xml\r\n<\/pre>\n<p>in the DATA directory.<\/p>\n<p>Note: You need to ensure you have connected to the CSF with X-forwarding enabled (e.g. ssh -X). For more information on how to do this please see the <a href=\"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/getting-started\/connecting\/gui-apps\/\">Logging in to use GUI apps<\/a> documentation.<\/p>\n<p>Further information and available options can be found after executing<\/p>\n<pre>code_saturne --help<\/pre>\n<p>Once you have set up your study\/case file structure, you will need to edit the \u201cruncfg\u201d file for submission to the queue. Follow the instructions for using <a href=\"\/csf4\/batch\/parallel-jobs\">Slurm on CSF4<\/a> as to what flags you should use.<\/p>\n<pre># Add these flags to the runcfg file near the top of the file\r\n#SBATCH -p multicore       # A single node (multicore) job\r\n#SBATCH -n 40              # for up to 40\r\n<\/pre>\n<p>or<\/p>\n<pre># Add these flags to the runcfg file near the top of the file\r\n#SBATCH -p multinode       # A multinode job\r\n#SBATCH -n 80              # for 80 to 200 cores in multiples of 40\r\n<\/pre>\n<p>After editing the file you can submit it by typing:<\/p>\n<pre>code_saturne submit\r\n<\/pre>\n<p>Note: It is highly recommended that if you are using any user subroutine, do a test compilation before submitting by typing:<\/p>\n<pre>code_saturne compile\r\n<\/pre>\n<p>The DEBUG version of the code has been installed which it allows to use a debugger to trace back of any errors and memory leaks. In order to view the available options of the gdb debugger, add the<\/p>\n<pre>-h<\/pre>\n<p>or<\/p>\n<pre>--help<\/pre>\n<p>flag, i.e.:<\/p>\n<pre>gdb -h\r\n<\/pre>\n<p>In order to find more information of a potential error in either the setup or the routines prepared for the case, the following commands need to be executed in the failed directory &#8220;RESU\/YYYY-MM-DD-HH-MM&#8221;:<\/p>\n<pre>gdb cs_solver\r\nrun\r\n<\/pre>\n<pre>backtrace\r\n<\/pre>\n<p>To exit the debugger:<\/p>\n<pre>quit\r\n<\/pre>\n<p>In addition to run the gdb debugger, some hints about the error or the reason for the case failure can be extracted by calling the&#8221;addr2line&#8221; utility in the failed run directory:<\/p>\n<pre> addr2line -e .\/cs_solver 0x400819<\/pre>\n<p>where 0x400819 is an example of an address in the call stack.<\/p>\n<h2>Further info<\/h2>\n<p><strong>NB:<\/strong> A tutorial on how to run Code_Saturne on CSF4 is made available in:<\/p>\n<pre>\/opt\/software\/RI\/apps\/Code_Saturne\/code_saturne_training_csf4.tar.gz<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Running the application Code_Saturne v7.0.2 can be used after executing on the login node: module load code_saturne\/7.0.2-iomkl-2020.02-python-3.8.2 Similarly, the GUI of Code_Saturne v7.0.2 can be launched by typing: code_saturne gui setup.xml or .\/code_saturne setup.xml in the DATA directory. Note: You need to ensure you have connected to the CSF with X-forwarding enabled (e.g. ssh -X). For more information on how to do this please see the Logging in to use GUI apps documentation. Further information.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/software\/applications\/code_saturne\/code_saturne-v7-0-2\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":597,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-944","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/comments?post=944"}],"version-history":[{"count":15,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/944\/revisions"}],"predecessor-version":[{"id":1008,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/944\/revisions\/1008"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/597"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/media?parent=944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}