CoEPP RC
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
cloud:combo [2013/12/23 16:00]
rwilson [Log ranges in the parameter file]
cloud:combo [2014/02/05 10:29]
lucien
Line 63: Line 63:
  
 A parameter file is a simple text file that contains definitions of combo variables and the values they may take.  An example file is: A parameter file is a simple text file that contains definitions of combo variables and the values they may take.  An example file is:
-<code>+<file>
 # An example template file # An example template file
  
Line 70: Line 70:
 beta = (0.0, 5.e-1, 25e-2) # a comment beta = (0.0, 5.e-1, 25e-2) # a comment
   Gamma = (-2, 2, 1)   Gamma = (-2, 2, 1)
-</code>+</file>
  
 Note that comments are started with a '#'​ character and extend to the end of the line and blank lines are ignored. Note that comments are started with a '#'​ character and extend to the end of the line and blank lines are ignored.
Line 113: Line 113:
 A //​template//​ file is a simple text file containing anything you want.  This could be a C/C++ file that will be compiled or a batch job script you will submit. A //​template//​ file is a simple text file containing anything you want.  This could be a C/C++ file that will be compiled or a batch job script you will submit.
 //combo// variables in the body of the template file are replaced with a value for that variable. ​ For instance, if we have the following template file: //combo// variables in the body of the template file are replaced with a value for that variable. ​ For instance, if we have the following template file:
-<code>+<file>
 A simple template file. A simple template file.
 The variable alpha has value <#​alpha>​ The variable alpha has value <#​alpha>​
 and beta=<#​BETA>​ and beta=<#​BETA>​
-</code>+</file>
 we see that there are two combo variables, //<#​alpha>//​ and //<#​BETA>//​.  ​ we see that there are two combo variables, //<#​alpha>//​ and //<#​BETA>//​.  ​
 Note that the case of the variable name doesn'​t matter and any surrounding whitespace inside the angle brackets is ignored. Note that the case of the variable name doesn'​t matter and any surrounding whitespace inside the angle brackets is ignored.
Line 232: Line 232:
  
 One possible use of the variable is to set a unique name in a PBS job script. ​ For example, you might have these lines in a template file: One possible use of the variable is to set a unique name in a PBS job script. ​ For example, you might have these lines in a template file:
-  ​# Set the name of this batch job +<​file>​ 
-  #PBS -N my_job_<#​_ID_>​+# Set the name of this batch job 
 +#PBS -N my_job_<#​_ID_
 +</file>
  
 If you generate 2000 PBS job scripts, each will have a unique PBS name. If you generate 2000 PBS job scripts, each will have a unique PBS name.
Line 316: Line 318:
  
 The **job.template** file contains: The **job.template** file contains:
-<code>+<file>
 #!/bin/bash #!/bin/bash
    
Line 328: Line 330:
 echo "​_id_=<#​_id_>"​ >> job.output_<#​_id_>​ echo "​_id_=<#​_id_>"​ >> job.output_<#​_id_>​
 echo "Job <#​_id_>​ done!" echo "Job <#​_id_>​ done!"
-</code>+</file>
  
 The **param.example** file is the same as above. The **param.example** file is the same as above.
cloud/combo.txt · Last modified: 2014/02/05 10:29 by lucien
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki