From 90f7129729c77311e04436f97d34f93ffbe4a449 Mon Sep 17 00:00:00 2001 From: Knut Morten Okstad Date: Tue, 10 Jan 2023 12:56:17 +0100 Subject: [PATCH] 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. --- src/SIM/AdaptiveSIM.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SIM/AdaptiveSIM.C b/src/SIM/AdaptiveSIM.C index 4d94ae81..4d7cb8d7 100644 --- a/src/SIM/AdaptiveSIM.C +++ b/src/SIM/AdaptiveSIM.C @@ -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); }