Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/inout_pmmg.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ int PMMG_loadCommunicators( PMMG_pParMesh parmesh,const char *filename ) {
} else if(!strncmp(chaine,"ParallelVertexCommunicators",strlen("ParallelVertexCommunicators"))) {
MMG_FSCANF(inm,"%d",&ncomm);
pos = ftell(inm);
API_mode = PMMG_APIDISTRIB_nodes;
if (API_mode == PMMG_UNSET) {
/** if both parallel nodes and parallel faces are provided, use faces to build communicators */
API_mode = PMMG_APIDISTRIB_nodes;
}
break;
}
}
Expand Down Expand Up @@ -292,7 +295,9 @@ int PMMG_loadCommunicators( PMMG_pParMesh parmesh,const char *filename ) {
MMG_FREAD(&ncomm,MMG5_SW,1,inm);
if(iswp) ncomm=MMG5_swapbin(ncomm);
pos = ftell(inm);
API_mode = PMMG_APIDISTRIB_nodes;
if (API_mode == PMMG_UNSET) {
API_mode = PMMG_APIDISTRIB_nodes;
}
rewind(inm);
fseek(inm,bpos,SEEK_SET);
continue;
Expand Down