Skip to content
Snippets Groups Projects
Commit 741eb739 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix Cjr sign in 2D

This was buggy since used gmsh meshes were incorrectly oriented ...
Should check cells volume
parent 447ba701
No related branches found
No related tags found
1 merge request!37Feature/language
......@@ -106,7 +106,7 @@ class MeshData
int Rp1 = (R + 1) % cell_nodes.size();
int Rm1 = (R + cell_nodes.size() - 1) % cell_nodes.size();
Rd half_xrp_xrm = 0.5 * (xr[cell_nodes[Rp1]] - xr[cell_nodes[Rm1]]);
Cjr(j, R) = Rd{-half_xrp_xrm[1], half_xrp_xrm[0]};
Cjr(j, R) = Rd{half_xrp_xrm[1], -half_xrp_xrm[0]};
}
});
m_Cjr = Cjr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment