{"id":5075,"date":"2021-01-15T17:43:41","date_gmt":"2021-01-15T17:43:41","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=5075"},"modified":"2021-01-18T14:12:09","modified_gmt":"2021-01-18T14:12:09","slug":"genx","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/genx\/","title":{"rendered":"GenX"},"content":{"rendered":"<h2>Overview<\/h2>\n<p><a href=\"https:\/\/genx.sourceforge.io\/\">GenX<\/a> is a program using the differential evolution algorithm for fitting, primarily, X-ray and neutron reflectivity data, lately also surface x-ray diffraction data. The differential evolution algorithm is a robust optimization method which avoids local minima but at same is a highly effective.<\/p>\n<p>Version 3.0.4 is installed on the CSF.<\/p>\n<h2>Restrictions on use<\/h2>\n<p>There are no restrictions on accessing the software on the CSF. It is released under the <a href=\"https:\/\/sourceforge.net\/p\/genx\/git\/ci\/v3.0.4\/tree\/\">GNU GPL v2 license<\/a> and all usage must adhere to that license.<\/p>\n<h2>Set up procedure<\/h2>\n<p>We now recommend loading modulefiles within your jobscript so that you have a full record of how the job was run. See the example jobscript below for how to do this. Alternatively, you may load modulefiles on the login node and let the job <abbr title=\"add '#$ -V' to your jobscript\">inherit these settings<\/abbr>.<\/p>\n<p>Load <em>one <\/em>of the following modulefiles:<\/p>\n<pre>\r\nmodule load apps\/python\/genx\/3.0.4          # Serial and multi-process version\r\n\r\nmodule load apps\/python\/genx\/3.0.4-mpi      # MPI parallel version\r\n<\/pre>\n<h2>Running the application<\/h2>\n<p>Please do not run GenX on the login node. Jobs should be submitted to the compute nodes via batch. To see the flags \/ switches accepted by the <code>genx<\/code> command, you can run the following on the login node:<\/p>\n<pre>\r\ngenx --help\r\n<\/pre>\n<p>Please note that the graphics user interface has not been enabled in this installation. GenX can only be used in jobscripts without the GUI.<\/p>\n<h3>Serial batch job submission<\/h3>\n<p>Create a batch submission script (which will load the modulefile in the jobscript), for example:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#$ -cwd             # Job will run from the current directory\r\n                    # NO -V line - we load modulefiles in the jobscript\r\n\r\n# Load the required version\r\nmodule load apps\/python\/genx\/3.0.4\r\n\r\n# Use flags\/switch appropriate to your usage\r\ngenx --run --pr $NSLOTS <em>input<\/em>.gx <em>output<\/em>.gx\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre>qsub <em>scriptname<\/em><\/pre>\n<p>where <em>scriptname<\/em> is the name of your jobscript.<\/p>\n<h3>Parallel (non-MPI) batch job submission<\/h3>\n<p>Create a batch submission script (which will load the modulefile in the jobscript), for example:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#$ -cwd             # Job will run from the current directory\r\n#$ -pe smp.pe 4     # Number of cores (can be 2--32)\r\n\r\n# Load the required version\r\nmodule load apps\/python\/genx\/3.0.4\r\n\r\n# $NSLOTS is automatically set to the number of cores given above.\r\ngenx --run --pr $NSLOTS <em>input<\/em>.gx <em>output<\/em>.gx\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre>qsub <em>scriptname<\/em><\/pre>\n<p>where <em>scriptname<\/em> is the name of your jobscript.<\/p>\n<h3>Parallel (MPI) batch job submission<\/h3>\n<p>Create a batch submission script (which will load the modulefile in the jobscript), for example:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#$ -cwd             # Job will run from the current directory\r\n#$ -pe smp.pe 16    # Number of cores (can be 2--32)\r\n\r\n# Load the required version (this is the MPI version)\r\nmodule load apps\/python\/genx\/3.0.4<strong>-mpi<\/strong>\r\n\r\n# $NSLOTS is automatically set to the number of cores given above.\r\nmpirun -n $NSLOTS genx --mpi <em>input<\/em>.gx <em>output<\/em>.gx\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre>qsub <em>scriptname<\/em><\/pre>\n<p>where <em>scriptname<\/em> is the name of your jobscript.<\/p>\n<h2>Further info<\/h2>\n<ul>\n<li><a href=\"https:\/\/genx.sourceforge.io\/doc\/tutorials.html\">GenX tutorials<\/a><\/li>\n<li><a href=\"https:\/\/genx.sourceforge.io\/\">GenX website<\/a>\n<\/ul>\n<h2>Updates<\/h2>\n<p>None.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview GenX is a program using the differential evolution algorithm for fitting, primarily, X-ray and neutron reflectivity data, lately also surface x-ray diffraction data. The differential evolution algorithm is a robust optimization method which avoids local minima but at same is a highly effective. Version 3.0.4 is installed on the CSF. Restrictions on use There are no restrictions on accessing the software on the CSF. It is released under the GNU GPL v2 license and.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/genx\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":86,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5075","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/5075","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=5075"}],"version-history":[{"count":5,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/5075\/revisions"}],"predecessor-version":[{"id":5087,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/5075\/revisions\/5087"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/86"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/media?parent=5075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}