Changeset 635


Ignore:
Timestamp:
12/12/17 22:44:52 (6 years ago)
Author:
dubos
Message:

devel : set nb_threads to OMP_NUM_THREADS by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/src/unstructured/caldyn_unstructured.F90

    r624 r635  
    2424       caldyn_vert_cons=1 
    2525  INTEGER(C_INT),  BIND(C) :: caldyn_thermo=thermo_theta, caldyn_eta=eta_lag, & 
    26        caldyn_vert_variant=caldyn_vert_cons, nb_threads=1 
     26       caldyn_vert_variant=caldyn_vert_cons, nb_threads=0 
    2727  LOGICAL(C_BOOL), BIND(C) :: hydrostatic=.TRUE., debug_hevi_solver=.TRUE., rigid=.TRUE. 
    2828! 
     
    8484  INTEGER :: ij 
    8585 
    86   !CALL CPU_TIME(time1) 
     86CALL CPU_TIME(time1) 
    8787  time1=OMP_GET_WTIME() 
    8888 
     
    107107       CALL caldyn_vert(drhodz,rhodz,theta,u, dmass_col,wflux,dtheta_rhodz,du_slow,wwuu) 
    108108    END IF 
    109     !$OMP END PARALLEL 
     109!$OMP END PARALLEL 
    110110 
    111111  ELSE ! NH 
     
    368368  PRINT *, MINVAL(right), MAXVAL(left) 
    369369  PRINT *,' ... Done.' 
     370  IF(nb_threads==0) nb_threads=OMP_GET_MAX_THREADS() 
    370371  PRINT *,'OpenMP : max_threads, num_procs, nb_threads', OMP_GET_MAX_THREADS(), omp_get_num_procs(), nb_threads 
    371372 
Note: See TracChangeset for help on using the changeset viewer.