{"id":6431,"date":"2022-10-27T12:29:06","date_gmt":"2022-10-27T11:29:06","guid":{"rendered":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=6431"},"modified":"2023-02-02T09:23:13","modified_gmt":"2023-02-02T09:23:13","slug":"code_saturne-v7-0-2","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/codesaturne\/code_saturne-v7-0-2\/","title":{"rendered":"Code_Saturne v7.0.2"},"content":{"rendered":"<h2>Running the application<\/h2>\n<p>The GUI of Code_Saturne v7.0.2 can be launched by typing:<\/p>\n<pre>\r\ncode_saturne gui setup.xml \r\n\r\n\"or\" \r\n\r\n.\/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=\"https:\/\/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.<br \/>\nFollow the guidelines on https:\/\/ri.itservices.manchester.ac.uk\/csf3\/batch\/parallel-jobs\/ as to what flags and what parallel environment you should use. The recommended ones are:<\/p>\n<p>* smp.pe (for 2 to 32 cores)<br \/>\n* mpi-24-ib.pe (for 48 cores or more in multiples of 24)<\/p>\n<p>After editing the \u201cruncfg\u201d you can submit it by typing:<\/p>\n<pre>\r\ncode_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>\r\ncode_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>\r\ngdb -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>\r\ngdb cs_solver\r\nrun\r\n<\/pre>\n<pre>\r\nbacktrace\r\n<\/pre>\n<p>To exit the debugger:<\/p>\n<pre>\r\nquit\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 CSF3 is made available in:<\/p>\n<pre>\/opt\/apps\/apps\/intel-18.0\/Code_Saturne\/code_saturne_training_csf3.tar.gz<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Running the application The GUI of Code_Saturne v7.0.2 can be launched by typing: code_saturne gui setup.xml &#8220;or&#8221; .\/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 and available options can be found after executing code_saturne &#8211;help Once you have set up.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/codesaturne\/code_saturne-v7-0-2\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2388,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-6431","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/6431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=6431"}],"version-history":[{"count":13,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/6431\/revisions"}],"predecessor-version":[{"id":6641,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/6431\/revisions\/6641"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2388"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/media?parent=6431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}