Skip to content

Commit

Permalink
add more amr.* stuff to job_info
Browse files Browse the repository at this point in the history
in particular, this adds blocking_factor, n_error_buf, max_grid_size,
and subcycling_mode
  • Loading branch information
zingale committed Apr 19, 2024
1 parent 5cacc94 commit a505128
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Source/driver/Castro_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,32 @@ Castro::writeJobInfo (const std::string& dir, const Real io_time)
}
jobInfoFile << "\n";

jobInfoFile << " amr.n_error_buf: ";
for (int lev = 1; lev <= max_level; lev++) {
int errbuf = parent->nErrorBuf(lev-1);
jobInfoFile << errbuf << " ";
}
jobInfoFile << "\n";

jobInfoFile << " amr.blocking_factor: ";
for (int lev = 1; lev <= max_level; lev++) {
IntVect bf = parent->blockingFactor(lev-1);
jobInfoFile << bf[0] << " ";
}
jobInfoFile << "\n";

jobInfoFile << " amr.max_grid_size: ";
for (int lev = 1; lev <= max_level; lev++) {
IntVect mgs = parent->maxGridSize(lev-1);
jobInfoFile << mgs[0] << " ";
}
jobInfoFile << "\n\n";

jobInfoFile << " amr.subcycling_mode: " << parent->subcyclingMode();

jobInfoFile << "\n\n";



// species info
int mlen = 20;
Expand Down

0 comments on commit a505128

Please sign in to comment.