- Timestamp:
- 05/01/12 17:28:47 (13 years ago)
- Location:
- issm/branches/trunk-jpl-damage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-damage
- Property svn:ignore
-
old new 7 7 config.status 8 8 configure 9 doxygen10 9 ISSM.paf 11 10 ISSM.ppf 12 11 ISSM.ppf_cache 13 12 libtool 14 list15 13 Makefile 16 14 Makefile.in 17 15 stamp-h1 18 16 svn-commit* 19 nightlylog
-
- Property svn:mergeinfo changed
/issm/trunk merged: 11526,11533,11681-11682,11710,11778-11779,11995 /issm/trunk-jpl merged: 11992-11994,11996-12003,12005-12113,12115-12161,12163-12166
- Property svn:ignore
-
issm/branches/trunk-jpl-damage/src/c/modules/Dakotax/Dakotax.cpp
r12004 r12168 51 51 #endif 52 52 53 #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)54 void Dakotax(mxArray* femmodel){55 #else56 53 void Dakotax(FemModel* femmodel){ 57 #endif58 54 59 55 … … 69 65 70 66 /*Retrieve parameters: */ 71 #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)72 FetchData((Parameters**)¶meters,mxGetField((mxArray*)femmodel,0,"parameters"));73 #else74 67 parameters=femmodel->parameters; 75 #endif76 68 77 69 /*Recover dakota_input_file, dakota_output_file and dakota_error_file, in the parameters dataset in parallel */ … … 80 72 parameters->FindParam(&dakota_error_file,QmuErrNameEnum); 81 73 82 #ifdef _PARALLEL_83 74 if(my_rank==0){ 84 #endif85 75 86 76 // Instantiate/initialize the parallel library and problem description 87 77 // database objects. 88 #if defined(_HAVE_MATLAB_) && defined(_SERIAL_) 89 Dakota::ParallelLibrary parallel_lib; //use Dakota's standard library mode constructor 90 #else 91 Dakota::ParallelLibrary parallel_lib("serial"); //use our own ISSM Dakota library mode constructor, which only fires up Dakota on CPU 0. 92 #endif 78 Dakota::ParallelLibrary parallel_lib("serial"); //use our own ISSM Dakota library mode constructor, which only fires up Dakota on CPU 0. 93 79 Dakota::ProblemDescDB problem_db(parallel_lib); 94 80 … … 123 109 selected_strategy.run_strategy(); 124 110 125 #ifdef _PARALLEL_126 111 //Warn other cpus that we are done running the dakota iterator, by setting the counter to -1: 127 112 SpawnCore(NULL,0, NULL,NULL,0,femmodel,-1); 128 #endif129 113 130 #ifdef _PARALLEL_131 114 } 132 115 else{ … … 136 119 } 137 120 } 138 #endif //#ifdef _PARALLEL_139 121 140 122 /*Free ressources:*/ … … 143 125 xfree((void**)&dakota_output_file); 144 126 145 #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)146 delete parameters;147 #endif148 149 127 #endif //#ifdef _HAVE_DAKOTA_ 150 128 }
Note:
See TracChangeset
for help on using the changeset viewer.