Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Tests/Algebra/GMRES/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ int main (int argc, char* argv[])
amrex::Axpy(xvec, Real(-1.0), exact);
auto error = xvec.norminf();
amrex::Print() << " Max norm error: " << error << "\n";
#ifdef AMREX_USE_FLOAT
AMREX_ALWAYS_ASSERT(error < eps);
#else
AMREX_ALWAYS_ASSERT(error*10 < eps);
#endif
}
amrex::Finalize();
}
4 changes: 2 additions & 2 deletions Tests/CommType/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ int main(int argc, char* argv[])
int ret_code = EXIT_SUCCESS;

{
int ncells = 128;
int ncells = 64;
BoxArray ba(Box(IntVect(0), IntVect(ncells-1)));
ba.maxSize(32);
ba.maxSize(16);
ba.convert(IntVect(1));
DistributionMapping dm(ba);

Expand Down
6 changes: 3 additions & 3 deletions Tests/FFT/Batch/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ int main (int argc, char* argv[])
auto error = mf2.norminf(0, batch_size, IntVect(0));
amrex::Print() << " Expected to be close to zero: " << error << "\n";
#ifdef AMREX_USE_FLOAT
auto eps = 1.e-6f;
auto eps = 3.e-6F;
#else
auto eps = 1.e-13;
#endif
Expand All @@ -133,7 +133,7 @@ int main (int argc, char* argv[])
auto error = errmf.norminf(0, batch_size, IntVect(0));
amrex::Print() << " Expected to be close to zero: " << error << "\n";
#ifdef AMREX_USE_FLOAT
auto eps = 0.5e-6f;
auto eps = 3.e-6F;
#else
auto eps = 1.e-15;
#endif
Expand All @@ -156,7 +156,7 @@ int main (int argc, char* argv[])
auto error = mf2.norminf(0, batch_size, IntVect(0));
amrex::Print() << " Expected to be close to zero: " << error << "\n";
#ifdef AMREX_USE_FLOAT
auto eps = 1.e-6f;
auto eps = 3.e-6F;
#else
auto eps = 1.e-13;
#endif
Expand Down
4 changes: 2 additions & 2 deletions Tests/FFT/RawPtr/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ int main (int argc, char* argv[])
});
amrex::Print() << " Expected to be close to zero: " << error << "\n";
#ifdef AMREX_USE_FLOAT
auto eps = 1.e-6f;
auto eps = 3.e-6F;
#else
auto eps = 1.e-13;
#endif
Expand Down Expand Up @@ -124,7 +124,7 @@ int main (int argc, char* argv[])
});
amrex::Print() << " Expected to be close to zero: " << error << "\n";
#ifdef AMREX_USE_FLOAT
auto eps = 1.e-6f;
auto eps = 3.e-6F;
#else
auto eps = 1.e-13;
#endif
Expand Down
3 changes: 3 additions & 0 deletions Tests/LinearSolvers/NodalPoisson/MyTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ MyTest::readParameters ()
pp.query("max_iter", max_iter);
pp.query("max_fmg_iter", max_fmg_iter);
pp.query("reltol", reltol);
#ifdef AMREX_USE_FLOAT
reltol = std::max(reltol, 1.e-5F);
#endif

pp.query("gpu_regtest", gpu_regtest);

Expand Down
4 changes: 4 additions & 0 deletions Tests/LinearSolvers/Nodal_Projection_EB/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,11 @@ int main (int argc, char* argv[])
// nodal_solver.setBottomSolver(MLMG::BottomSolver::hypre);

// Define the relative tolerance
#ifdef AMREX_USE_FLOAT
Real reltol = 2.e-4;
#else
Real reltol = 1.e-8;
#endif

// Define the absolute tolerance; note that this argument is optional
Real abstol = 1.e-15;
Expand Down
160 changes: 80 additions & 80 deletions Tests/Parser/main.cpp

Large diffs are not rendered by default.

Loading