diff --git a/Solver/dgSystemOfEquations.cpp b/Solver/dgSystemOfEquations.cpp index 89189337d98fde3236fb326be463511cd01dd74b..abfd8a151cab877d49569a21548e065a3df8ff96 100644 --- a/Solver/dgSystemOfEquations.cpp +++ b/Solver/dgSystemOfEquations.cpp @@ -205,8 +205,9 @@ void dgSystemOfEquations::export_solution_as_is (const std::string &name){ fprintf(f,"\"%s\"\n",name.c_str()); fprintf(f,"1\n"); fprintf(f,"0.0\n"); - fprintf(f,"3\n"); + fprintf(f,"%d\n", Msg::GetCommSize() > 1 ? 4 : 3); fprintf(f,"0\n 1\n %d\n",COUNT); + if(Msg::GetCommSize() > 1) fprintf(f,"%d\n", Msg::GetCommRank()); for (int i=0;i < _groups.getNbElementGroups() ;i++){ dgGroupOfElements *group = _groups.getElementGroup(i); for (int iElement=0 ; iElement< group->getNbElements() ;++iElement) {