]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
Corrections for windows yan/parallel_mesh_win V9_11_0a1 V9_11_0a2 1/head
authorYoann Audouin <yoann.audouin@edf.fr>
Tue, 28 Mar 2023 07:02:14 +0000 (09:02 +0200)
committerYoann Audouin <yoann.audouin@edf.fr>
Tue, 28 Mar 2023 07:02:14 +0000 (09:02 +0200)
src/NETGENPlugin/NETGENPlugin_NETGEN_3D_Remote.cxx

index 8b3b551fcf0340ab4d71f1ec93c2ec807e8c6209..3818d1e9b20c130fa7bc5584f24e234ea17f2242 100644 (file)
@@ -233,13 +233,18 @@ bool NETGENPlugin_NETGEN_3D_Remote::Compute(SMESH_Mesh&         aMesh,
 
   // Temporary folder for run
 #ifdef WIN32
-  fs::path tmp_folder = aMesh.GetTmpFolder() / fs::path("Volume-%%%%-%%%%");
+  // On windows mesh does not have GetTmpFolder
+  fs::path tmp_folder = fs::path("Volume-%%%%-%%%%");
 #else
   fs::path tmp_folder = aMesh.GetTmpFolder() / fs::unique_path(fs::path("Volume-%%%%-%%%%"));
 #endif
   fs::create_directories(tmp_folder);
   // Using MESH2D generated after all triangles where created.
+#ifdef WIN32
+  fs::path mesh_file=fs::path("Mesh2D.med");
+#else
   fs::path mesh_file=aMesh.GetTmpFolder() / fs::path("Mesh2D.med");
+#endif
   fs::path element_orientation_file=tmp_folder / fs::path("element_orientation.dat");
   fs::path new_element_file=tmp_folder / fs::path("new_elements.dat");
   fs::path tmp_mesh_file=tmp_folder / fs::path("tmp_mesh.med");