Changeset 12011 for issm/trunk-jpl/src/c/modules/Dakotax/SpawnCore.cpp
- Timestamp:
- 04/16/12 17:40:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/Dakotax/SpawnCore.cpp
r11861 r12011 21 21 /*Branch into a serial SpawnCore and a parallel SpawnCore: */ 22 22 23 #if defined(_HAVE_MATLAB_) && defined(_SERIAL_) 24 SpawnCoreSerial(responses, numresponses, variables, variables_descriptors,numvariables, (mxArray*)femmodel, counter); 25 #else 26 /*Call SpawnCoreParallel unless counter=-1 on cpu0, in which case, bail out and return 0: */ 27 MPI_Bcast(&counter,1,MPI_INT,0,MPI_COMM_WORLD); 28 if(counter==-1)return 0; 29 SpawnCoreParallel(responses, numresponses, variables, variables_descriptors,numvariables, (FemModel*)femmodel,counter); 30 #endif 23 /*Call SpawnCoreParallel unless counter=-1 on cpu0, in which case, bail out and return 0: */ 24 MPI_Bcast(&counter,1,MPI_INT,0,MPI_COMM_WORLD); 25 if(counter==-1)return 0; 26 27 SpawnCoreParallel(responses, numresponses, variables, variables_descriptors,numvariables, (FemModel*)femmodel,counter); 31 28 return 1; 32 29 }
Note:
See TracChangeset
for help on using the changeset viewer.