FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

typo in maxdivB · idefix-code/idefix@975ebbe · GitHub

Repository navigation

Commit 975ebbe

Browse files
committed
typo in maxdivB
1 parent 9bac418 commit 975ebbe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/timeIntegrator.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ void TimeIntegrator::ShowLog(DataBlock &data) {
135135
real divB = data.hydro.CheckDivB();
136136
idfx::cout << std::scientific;
137137
idfx::cout << " | " << std::setw(col_width) << divB;
138-
#ifdef USE_DOUBLE
138+
#ifndef SINGLE_PRECISION
139139
const real maxdivB = 1e-6;
140140
#else
141141
const real maxdivB = 1e-2;
142142
#endif
143143
if(divB>maxdivB) {
144144
std::stringstream msg;
145-
msg << std::endl << "divB>1e-6, check your calculation";
145+
msg << std::endl << "divB too large, check your calculation";
146146
throw std::runtime_error(msg.str());
147147
}
148148
#endif

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL