Skip to content

Commit

Permalink
add more amr.* stuff to job_info (#2828)
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 authored Apr 19, 2024
1 parent 5cacc94 commit 5f44c13
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Source/driver/Castro_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,39 @@ 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.regrid_int: ";
for (int lev = 1; lev <= max_level; lev++) {
int regridint = parent->regridInt(lev-1);
jobInfoFile << regridint << " ";
}
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 5f44c13

Please sign in to comment.