Changeset 710


Ignore:
Timestamp:
07/20/18 11:14:21 (6 years ago)
Author:
ymipsl
Message:

Remove conflict with OpenMP for LMDZ physic initialization.

At this stage, LDZ physic initialization must be called outside a OpenMP parallel section.

YM

Location:
codes/icosagcm/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/src/icosa_init.f90

    r668 r710  
    5555    CALL output_field_init 
    5656    CALL init_timeloop 
     57 
     58  !$OMP END PARALLEL 
     59 
    5760    CALL init_physics 
    5861 
     62  !$OMP PARALLEL 
     63   
    5964    CALL init_diagflux 
    6065    CALL zero_du_phys 
  • codes/icosagcm/trunk/src/physics/physics.f90

    r668 r710  
    3939    SELECT CASE(TRIM(physics_type)) 
    4040    CASE ('none') 
     41 
     42!$OMP PARALLEL 
    4143       IF(is_mpi_root) PRINT*,"NO PHYSICAL PACKAGE USED" 
    4244       phys_type = phys_none 
     45!$OMP END PARALLEL 
     46 
    4347    CASE ('held_suarez') 
     48 
     49!$OMP PARALLEL 
    4450       phys_type = phys_HS94 
     51!$OMP END PARALLEL 
     52 
    4553    CASE ('Lebonnois2012') 
     54 
     55!$OMP PARALLEL 
    4656       phys_type = phys_LB2012 
    4757       CALL init_phys_venus 
     58!$OMP END PARALLEL 
    4859 
    4960    CASE ('phys_lmdz_generic') 
     61 
     62!$OMP PARALLEL 
    5063       CALL init_physics_lmdz_generic 
    5164       phys_type=phys_lmdz_generic 
     65!$OMP END PARALLEL 
     66 
    5267    CASE ('phys_external') 
     68 
    5369       CALL init_physics_external 
     70!$OMP PARALLEL 
    5471       phys_type=phys_external 
     72!$OMP END PARALLEL 
     73 
    5574    CASE ('dcmip') 
     75 
     76!$OMP PARALLEL 
    5677       CALL allocate_field(f_dulon,field_t,type_real,llm, name='dulon') 
    5778       CALL allocate_field(f_dulat,field_t,type_real,llm, name='dulat') 
     
    6586       CALL init_pack_after ! Defines Ai, lon, lat in physics_inout 
    6687       phys_type = phys_DCMIP 
     88!$OMP END PARALLEL 
     89 
    6790    CASE ('dcmip2016') 
     91 
     92!$OMP PARALLEL 
    6893       CALL allocate_field(f_dulon,field_t,type_real,llm, name='dulon') 
    6994       CALL allocate_field(f_dulat,field_t,type_real,llm, name='dulat') 
     
    77102       CALL init_pack_after ! Defines Ai, lon, lat in physics_inout 
    78103       phys_type = phys_DCMIP2016 
     104!$OMP END PARALLEL 
     105 
    79106    CASE DEFAULT 
    80107       IF(is_mpi_root) PRINT*, 'init_physics : Bad selector for variable physics <',& 
Note: See TracChangeset for help on using the changeset viewer.