Ignore:
Timestamp:
Feb 26, 2025, 10:41:29 AM (4 months ago)
Author:
afalco
Message:

Pluto: fix bug in aerosol_mod in parallel. Setting deprecated aerohaze=true gives an error.
AF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/phypluto/aerosol_mod.F90

    r3632 r3650  
    7575            STOP "No filename given for haze profile. Either set hazemmr_file or hazedens_file"
    7676        endif
    77 
    78         if (is_master) then
    79             if(.not.allocated(levdat)) then
    80                 allocate(levdat(Nfine))
    81             endif
    82             if(.not.allocated(densdat)) then
    83                 allocate(densdat(Nfine))
    84             endif
     77!$OMP MASTER
     78        if(.not.allocated(levdat)) then
     79            allocate(levdat(Nfine))
     80        endif
     81        if(.not.allocated(densdat)) then
     82            allocate(densdat(Nfine))
     83        endif
    8584
    8685
    87             file_path=trim(datadir)//'/haze_prop/'//file_name
    88             open(224,file=file_path,form='formatted')
    89             do ifine=1,Nfine
    90             read(224,*) levdat(ifine), densdat(ifine)
    91             enddo
    92             close(224)
    93             print*, 'Read Haze profile: ',file_path
    94         endif
     86        file_path=trim(datadir)//'/haze_prop/'//file_name
     87        open(224,file=file_path,form='formatted')
     88        do ifine=1,Nfine
     89        read(224,*) levdat(ifine), densdat(ifine)
     90        enddo
     91        close(224)
     92        print*, 'Read Haze profile: ',file_path
     93!$OMP END MASTER
    9594!$OMP BARRIER
    9695      ENDIF
Note: See TracChangeset for help on using the changeset viewer.