Skip to content

Commit

Permalink
Merge pull request #340 from ESMCI/douglasjacobsen/fix_test_template
Browse files Browse the repository at this point in the history
Add white space after batch directives in script templates
  • Loading branch information
jgfouca authored Aug 4, 2016
2 parents e061505 + 43807a5 commit e7b334e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions cime_config/acme/machines/template.case.test
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/usr/bin/env python

# Batch system directives
{{ batchdirectives }}

"""
This is the system test submit script for CIME. This should only ever be called
by case.submit when on batch system. This script only exists as a way of providing
batch directives. Use case.submit from the command line to run your case.
"""

import os, sys
os.chdir( '{{ caseroot }}')

Expand Down
1 change: 1 addition & 0 deletions cime_config/acme/machines/template.ocn_diagnostics
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#

{{ batchdirectives }}

mpirun={{ mpirun }}

# xmlquery to get POSTPROCESS_VIRTUALENV, BATCHSUBMIT variable settings
Expand Down
1 change: 1 addition & 0 deletions cime_config/acme/machines/template.timeseries
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#

{_batchdirectives_}

mpirun={_mpirun_}

# xmlquery to get POSTPROCESS_VIRTUALENV, BATCHSUBMIT variable settings
Expand Down
11 changes: 7 additions & 4 deletions cime_config/acme/machines/template.tseries_generate.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#! /usr/bin/env perl

#------------------------------------------------------------------------------
# Batch system directives
#------------------------------------------------------------------------------

{{ batchdirectives }}

use POSIX qw(strftime);
use File::Path;
use File::Copy;
Expand All @@ -14,10 +21,6 @@
require ModuleLoader;


#------------------------------------------------------------------------------
# Batch system directives
#------------------------------------------------------------------------------
{{ batchdirectives }}
#------------------------------------------------------------------------------
# PE Layout Documentation:
#------------------------------------------------------------------------------
Expand Down

0 comments on commit e7b334e

Please sign in to comment.