Skip to content

Commit

Permalink
Fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed May 30, 2017
1 parent 90dbf5d commit e3a6fba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cime/scripts/lib/CIME/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,8 @@ def set_file(self, xmlfile):
gfile = GenericXML(infile=xmlfile)
ftype = gfile.get_id()

self.flush(flushall=True)

logger.warn("setting case file to %s"%xmlfile)
new_env_file = None
for env_file in self._env_entryid_files:
Expand Down
2 changes: 1 addition & 1 deletion components/cice/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ my $cppdefs = "$cppdefs -DBLCKX=$CICE_BLCKX -DBLCKY=$CICE_BLCKY -DMXBLCKS=$CICE_
# this will determine if need to rebuild at runtime - force user to call $CASE.buildexe

chdir "$CASEROOT";
my $sysmod = "./xmlchange -noecho -id CICE_CPPDEFS -file env_build.xml -val=\'$cppdefs\'";
my $sysmod = "./xmlchange --noecho --id CICE_CPPDEFS --val=\'$cppdefs\'";
system($sysmod) == 0 or die "ERROR cice.buildnml: $sysmod failed: $?\n";
chdir "$CASEROOT/Buildconf/ciceconf";

Expand Down

0 comments on commit e3a6fba

Please sign in to comment.