Changed: Use && instead of bit-wise &, to avoid warnings with newer compilers.

The result is that the mesh will not be saved if the refinement fails,
which probably makes more sense anyway.
This commit is contained in:
Knut Morten Okstad 2023-01-10 12:56:17 +01:00
parent d89c31558f
commit 90f7129729

View File

@ -215,7 +215,7 @@ bool AdaptiveSIM::adaptMesh (int iStep, std::streamsize outPrec)
return false;
// Now refine the mesh and write out resulting grid
return model.refine(prm) & this->writeMesh(iStep);
return model.refine(prm) && this->writeMesh(iStep);
}