@@ -232,40 +232,36 @@ if(nitcfg==1){param_real[0][TEMPS] = 0.0;}
232232 E_Int* ipt_ind_dm_omp_thread = ipt_ind_dm_socket + 6 ;
233233
234234 E_Int* ipt_nidom_loc, nb_subzone;
235- /* ***************************************************
235+ /* ***************************************************
236236 -----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
266259 }
260+ }// zone
267261
268-
262+ // calcul metric si maillage deformable
263+ #include " FastS/Metric/cp_metric.cpp"
264+ }
269265 // ---------------------------------------------------------------------
270266 // -----Boucle sur num.les domaines de la configuration
271267 // ---------------------------------------------------------------------
@@ -294,12 +290,9 @@ if(nitcfg==1){param_real[0][TEMPS] = 0.0;}
294290 }
295291#include " FastS/Compute/rhs.cpp"
296292 }
293+
297294#ifdef Conservatif
298295#include " FastS/Compute/cp_debitIBM.cpp"
299- #endif
300-
301- #if defined __GNUC__ && defined _OPENMP
302- #pragma omp barrier
303296#endif
304297
305298 //
@@ -319,7 +312,6 @@ if(nitcfg==1){param_real[0][TEMPS] = 0.0;}
319312#include " FastS/Compute/Linear_solver/lhs.cpp"
320313 }
321314
322-
323315 // LUSGS
324316 else
325317 {
@@ -439,13 +431,16 @@ E_Int lrhs=0; E_Int lcorner=0;
439431
440432 E_Int Nbre_thread_actif_loc, ithread_loc;
441433 //
442- // Apply BC (parcour Zones) + reinitialisation verrou pour calcul rhs
434+ // Apply BC (parcour Zones)
443435 //
444436 if (lexit_lu ==0 && layer_mode>=1 )
445437 {
446438 #include " FastS/Compute/bcs.cpp"
447439 }
448440
441+ // reinitialisation verrou pour calcul rhs et lhs
442+ #include " FastS/Compute/verrou_lhs_init.cpp"
443+
449444 }// fin zone omp
450445
451446/*
0 commit comments