1. Britton Smith
  2. np

Commits

Britton Smith  committed 6962bf2

Don't read in output log if parameter file explicitly given.

  • Participants
  • Parent commits 145da05
  • Branches default

Comments (0)

Files changed (1)

File np

View file
  • Ignore whitespace
     }
     elsif ($arg =~ /^-pf$/) {
       $parameterFile = shift @ARGV or die "No output file given with -pf.\n";
+      $skip_output_log = 1;
     }
     elsif ($arg =~ /^-t$/) {
       $simTitle = shift @ARGV or die "No title given with -t.\n";
 $kmPerMpc = 3.08567758e19;
 
 # Initialization.
-$pfile = &readOutputLog($outputLogFile);
+$pfile = &readOutputLog($outputLogFile) unless ($skip_output_log);
 $parameterFile = $pfile if ($pfile);
 &readParameters($parameterFile);
 $parameters{"CosmologyHubbleConstantNow"} *= 100;