X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Ftepal2med%2Fghs3dprl_mesh_wrap.cxx;h=926fa0e36647907464ec1ddc61d2d903649b6ce6;hb=e530ce04cfa7131dcc0f2825c6a59c7e7783bf08;hp=4b89aa68542d980c086796d55bcea47f8a43dc62;hpb=0c99dbcacf59940b2a55d2a2637388ee5954029d;p=plugins%2Fghs3dprlplugin.git diff --git a/src/tepal2med/ghs3dprl_mesh_wrap.cxx b/src/tepal2med/ghs3dprl_mesh_wrap.cxx index 4b89aa6..926fa0e 100644 --- a/src/tepal2med/ghs3dprl_mesh_wrap.cxx +++ b/src/tepal2med/ghs3dprl_mesh_wrap.cxx @@ -1918,11 +1918,14 @@ bool ghs3dprl_mesh_wrap::Write_MEDfiles_v2(bool /*deletekeys*/) } //create file resume DOMAIN.joints.med of all joints for quick display (...may be...) - tmp=path+medname+tmp.sprintf("_joints.med"); - charendnull(distfilename,tmp,MED_COMMENT_SIZE); - fidjoint=MEDfileOpen(distfilename,MED_ACC_CREAT); - if (fidjoint<0) std::cerr<<"Problem MEDfileOpen "<0) std::cout<<"CreateMEDFile for all joints <"<\n"; + if (! for_multithread) + { + tmp=path+medname+tmp.sprintf("_joints.med"); + charendnull(distfilename,tmp,MED_COMMENT_SIZE); + fidjoint=MEDfileOpen(distfilename,MED_ACC_CREAT); + if (fidjoint<0) std::cerr<<"Problem MEDfileOpen "<0) std::cout<<"CreateMEDFile for all joints <"<\n"; + } //copy file source/GHS3DPRL_skin.med as destination/DOMAIN.skin.med tmp=path+medname+"_skin.med"; @@ -2084,8 +2087,9 @@ bool ghs3dprl_mesh_wrap::Write_MEDfiles_v2(bool /*deletekeys*/) } MEDfileClose(fid); //no error - //master.xml writings - /*oktmp=*/Write_masterxmlMEDfile(); + //master.xml writings if mpi mode + if (!for_multithread) + /*oktmp=*/Write_masterxmlMEDfile(); continue; //and loop on others domains erreur: //error @@ -2094,7 +2098,8 @@ bool ghs3dprl_mesh_wrap::Write_MEDfiles_v2(bool /*deletekeys*/) } - MEDfileClose(fidjoint); //no error + if (! for_multithread) + MEDfileClose(fidjoint); //no error if (verbose>0)std::cout<<"\nTotalNumberOftetrahedra="<