@@ -232,38 +232,39 @@ if(nitcfg==1){param_real[0][TEMPS] = 0.0;}
232
232
E_Int* ipt_ind_dm_omp_thread = ipt_ind_dm_socket + 6 ;
233
233
234
234
E_Int* ipt_nidom_loc, nb_subzone;
235
- /* ***************************************************
235
+ /* ***************************************************
236
236
-----Boucle sous-iteration
237
- ****************************************************/
238
- E_Int nbtask = ipt_omp[nitcfg-1 ];
239
- E_Int ptiter = ipt_omp[nssiter+ nitcfg-1 ];
240
-
241
- if ( nitcfg == 1 )
242
- {
243
- // mise a jour metric et vent ale zone cart et 3dhom(3dfull et 2d a la volee)
244
- for (E_Int ntask = 0 ; ntask < nbtask; ntask++)
245
- {
246
- E_Int pttask = ptiter + ntask*(6 +Nbre_thread_actif*7 );
247
- E_Int nd = ipt_omp[ pttask ];
248
- if (param_int[nd][LALE]==1 ) // maillage indeformable
249
- {
250
- mjr_ale_3dhomocart_ (nd, param_int[nd] , param_real[nd] ,
251
- socket , Nbre_socket , ithread_sock , thread_parsock,
252
- ipt_ind_dm_socket , ipt_topology_socket,
253
- iptx[nd] , ipty[nd] , iptz[nd] ,
254
- ipti[nd] , iptj[nd] , iptk[nd] ,
255
- ipti0[nd] , iptj0[nd] , iptk0[nd] , iptvol[nd] ,
256
- iptventi[nd] , iptventj[nd] , iptventk[nd] );
257
- // modifier mjr_ale_3dhomocart_ pour faire sauter barrier
258
- #pragma omp barrier
259
- }
260
- }// zone
261
-
262
-
263
- // calcul metric si maillage deformable
264
- //
265
- #include " FastS/Metric/cp_metric.cpp"
237
+ ****************************************************/
238
+ E_Int nbtask = ipt_omp[nitcfg-1 ];
239
+ E_Int ptiter = ipt_omp[nssiter+ nitcfg-1 ];
240
+
241
+ if ( nitcfg == 1 )
242
+ {
243
+ // mise a jour metric et vent ale zone cart et 3dhom(3dfull et 2d a la volee)
244
+ for (E_Int ntask = 0 ; ntask < nbtask; ntask++)
245
+ {
246
+ E_Int pttask = ptiter + ntask*(6 +Nbre_thread_actif*7 );
247
+ E_Int nd = ipt_omp[ pttask ];
248
+ if (param_int[nd][LALE]==1 ) // maillage indeformable
249
+ {
250
+ mjr_ale_3dhomocart_ (nd, param_int[nd] , param_real[nd] ,
251
+ socket , Nbre_socket , ithread_sock , thread_parsock,
252
+ ipt_ind_dm_socket , ipt_topology_socket,
253
+ iptx[nd] , ipty[nd] , iptz[nd] ,
254
+ ipti[nd] , iptj[nd] , iptk[nd] ,
255
+ ipti0[nd] , iptj0[nd] , iptk0[nd] , iptvol[nd] ,
256
+ iptventi[nd] , iptventj[nd] , iptventk[nd] );
257
+ // modifier mjr_ale_3dhomocart_ pour faire sauter barrier
258
+ #pragma omp barrier
266
259
}
260
+ }// zone
261
+
262
+ // calcul metric si maillage deformable
263
+ #include " FastS/Metric/cp_metric.cpp"
264
+ }
265
+
266
+ // init verrou omp
267
+ #include " FastS/Compute/verrou_lhs_init.cpp"
267
268
268
269
269
270
// ---------------------------------------------------------------------
@@ -298,9 +299,9 @@ if(nitcfg==1){param_real[0][TEMPS] = 0.0;}
298
299
#include " FastS/Compute/cp_debitIBM.cpp"
299
300
#endif
300
301
301
- #if defined __GNUC__ && defined _OPENMP
302
- #pragma omp barrier
303
- #endif
302
+ // #if defined __GNUC__ && defined _OPENMP
303
+ // #pragma omp barrier
304
+ // #endif
304
305
305
306
//
306
307
// timer pour omp "dynamique"
@@ -319,7 +320,6 @@ if(nitcfg==1){param_real[0][TEMPS] = 0.0;}
319
320
#include " FastS/Compute/Linear_solver/lhs.cpp"
320
321
}
321
322
322
-
323
323
// LUSGS
324
324
else
325
325
{
0 commit comments