Init debugparam write_mesh_on_error with env variable NG_WRITE_MESH_ON_ERROR

This commit is contained in:
Matthias Hochsteger 2023-12-18 20:22:46 +01:00
parent b26d8d5fb0
commit a272a8d420

View File

@ -2973,7 +2973,7 @@ namespace netgen
haltsegment = 0;
haltsegmentp1 = 0;
haltsegmentp2 = 0;
write_mesh_on_error = false;
write_mesh_on_error = getenv("NG_WRITE_MESH_ON_ERROR");
};