| 170 | } |
| 171 | |
| 172 | void |
| 173 | Castro::variableSetUp () |
| 174 | { |
| 175 | |
| 176 | // Castro::variableSetUp is called in the constructor of Amr.cpp, so |
| 177 | // it should get called every time we start or restart a job |
| 178 | |
| 179 | |
| 180 | // initialize the start time for our CPU-time tracker |
| 181 | startCPUTime = ParallelDescriptor::second(); |
| 182 | |
| 183 | |
| 184 | // Output the git commit hashes used to build the executable. |
| 185 | |
| 186 | if (ParallelDescriptor::IOProcessor()) { |
| 187 | |
| 188 | const char* castro_hash = buildInfoGetGitHash(1); |
| 189 | const char* amrex_hash = buildInfoGetGitHash(2); |
| 190 | const char* microphysics_hash = buildInfoGetGitHash(3); |
| 191 | const char* buildgithash = buildInfoGetBuildGitHash(); |
| 192 | const char* buildgitname = buildInfoGetBuildGitName(); |
| 193 | |
| 194 | if (strlen(castro_hash) > 0) { |
| 195 | std::cout << "\n" << "Castro git describe: " << castro_hash << "\n"; |
| 196 | } |
| 197 | if (strlen(amrex_hash) > 0) { |
| 198 | std::cout << "AMReX git describe: " << amrex_hash << "\n"; |
| 199 | } |
| 200 | if (strlen(microphysics_hash) > 0) { |
| 201 | std::cout << "Microphysics git describe: " << microphysics_hash << "\n"; |
| 202 | } |
| 203 | if (strlen(buildgithash) > 0){ |
| 204 | std::cout << buildgitname << " git describe: " << buildgithash << "\n"; |
| 205 | } |
| 206 | |
| 207 | std::cout << "\n"; |
| 208 | } |
| 209 | |
| 210 | BL_ASSERT(desc_lst.size() == 0); |
| 211 | |
| 212 | // read the C++ parameters that are set in inputs and do other |
| 213 | // initializations (e.g., set phys_bc) |
| 214 | read_params(); |
| 215 | |
| 216 | // initialize the C++ values of the problem-specific runtime parameters. |
| 217 | |
| 218 | init_prob_parameters(); |
| 219 | |
| 220 | // Initialize the runtime parameters for any of the external |
| 221 | // microphysics |
| 222 | extern_init(); |
| 223 | |
| 224 | // set small positive values of the "small" quantities if they are |
| 225 | // negative |
| 226 | if (small_dens < 0.0_rt) { |
| 227 | small_dens = 1.e-100_rt; |
| 228 | } |
| 229 |
nothing calls this directly
no test coverage detected