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
cloud:combo [2014/02/05 10:29]
lucien
cloud:combo [2014/02/05 10:29] (current)
lucien old revision restored (2013/12/23 16:00)
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:
-<file>+<code>
 # 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)
-</file>+</code>
  
 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:
-<file>+<code>
 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>​
-</file>+</code>
 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:
-<​file>​ +  ​# Set the name of this batch job 
-# Set the name of this batch job +  #PBS -N my_job_<#​_ID_>​
-#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 318: Line 316:
  
 The **job.template** file contains: The **job.template** file contains:
-<file>+<code>
 #!/bin/bash #!/bin/bash
    
Line 330: Line 328:
 echo "​_id_=<#​_id_>"​ >> job.output_<#​_id_>​ echo "​_id_=<#​_id_>"​ >> job.output_<#​_id_>​
 echo "Job <#​_id_>​ done!" echo "Job <#​_id_>​ done!"
-</file>+</code>
  
 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