commit f12209b962d9bb22c0ed96ccc5af9f7a4c53aed2
parent 87db36ce6a0e77a970e5f0c7a797b1b1f2bd8672
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 23 Aug 2022 10:39:55 +0200
Fix the check of volumetric meshes
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rnatm_mesh.c b/src/rnatm_mesh.c
@@ -36,7 +36,7 @@ check_smsh_desc(struct rnatm* atm, const struct smsh_desc* desc)
res_T res = RES_OK;
ASSERT(atm && desc);
- if(desc->dnode != 3 && desc->dcell != 4) {
+ if(desc->dnode != 3 || desc->dcell != 4) {
log_err(atm,
"An atmosphere mesh must be a 3D tetrahedral mesh "
"(dimension of the mesh: %u; dimension of the vertices: %u)\n",