| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -135,14 +135,14 @@ void TimeIntegrator::ShowLog(DataBlock &data) { | |||
| 135 | 135 | real divB = data.hydro.CheckDivB(); | |
| 136 | 136 | idfx::cout << std::scientific; | |
| 137 | 137 | idfx::cout << " | " << std::setw(col_width) << divB; | |
| 138 | - #ifdef USE_DOUBLE | ||
| 138 | + #ifndef SINGLE_PRECISION | ||
| 139 | 139 | const real maxdivB = 1e-6; | |
| 140 | 140 | #else | |
| 141 | 141 | const real maxdivB = 1e-2; | |
| 142 | 142 | #endif | |
| 143 | 143 | if(divB>maxdivB) { | |
| 144 | 144 | std::stringstream msg; | |
| 145 | - msg << std::endl << "divB>1e-6, check your calculation"; | ||
| 145 | + msg << std::endl << "divB too large, check your calculation"; | ||
| 146 | 146 | throw std::runtime_error(msg.str()); | |
| 147 | 147 | } | |
| 148 | 148 | #endif | |
| Back | FazBrowse Home | New Git URL |
0 commit comments