Ignore:
Timestamp:
Jul 23, 2016, 7:45:38 AM (8 years ago)
Author:
Ehouarn Millour
Message:

Cleanup in the dynamics: turn comvert.h into module comvert_mod.F90
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dyn3dpar/vlspltgen_p.F

    r2597 r2600  
    3434#include "paramet.h"
    3535#include "logic.h"
    36 #include "comvert.h"
    3736
    3837c
     
    105104
    106105       
    107         ijb=ij_begin-iip1
    108         ije=ij_end+iip1
    109         if (pole_nord) ijb=ij_begin
    110         if (pole_sud) ije=ij_end
    111        
     106        ijb=ij_begin-iip1
     107        ije=ij_end+iip1
     108        if (pole_nord) ijb=ij_begin
     109        if (pole_sud) ije=ij_end
     110       
    112111c$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
    113         DO l = 1, llm
     112        DO l = 1, llm
    114113         DO ij = ijb, ije
    115114          tempe(ij) = teta(ij,l) * pk(ij,l) /cpp
     
    191190
    192191        if(iadv(iq) == 0) then
    193        
    194           cycle
    195        
    196         else if (iadv(iq)==10) then
     192       
     193          cycle
     194       
     195        else if (iadv(iq)==10) then
    197196
    198197#ifdef _ADV_HALO       
    199           call vlx_p(zq(1,1,iq),pente_max,zm(1,1,iq),mu,
    200      &               ij_begin,ij_begin+2*iip1-1)
     198          call vlx_p(zq(1,1,iq),pente_max,zm(1,1,iq),mu,
     199     &                     ij_begin,ij_begin+2*iip1-1)
    201200          call vlx_p(zq(1,1,iq),pente_max,zm(1,1,iq),mu,
    202201     &               ij_end-2*iip1+1,ij_end)
    203202#else
    204           call vlx_p(zq(1,1,iq),pente_max,zm(1,1,iq),mu,
    205      &               ij_begin,ij_end)
     203          call vlx_p(zq(1,1,iq),pente_max,zm(1,1,iq),mu,
     204     &                     ij_begin,ij_end)
    206205#endif
    207206
     
    215214          call VTe(VTHallo)
    216215c$OMP END MASTER
    217         else if (iadv(iq)==14) then
     216        else if (iadv(iq)==14) then
    218217
    219218#ifdef _ADV_HALO           
     
    239238c$OMP END MASTER
    240239        else
    241        
    242           stop 'vlspltgen_p : schema non parallelise'
     240       
     241          stop 'vlspltgen_p : schema non parallelise'
    243242     
    244243        endif
     
    261260
    262261        if(iadv(iq) == 0) then
    263        
    264           cycle
    265        
    266         else if (iadv(iq)==10) then
     262       
     263          cycle
     264       
     265        else if (iadv(iq)==10) then
    267266
    268267#ifdef _ADV_HALLO
     
    270269     &               ij_begin+2*iip1,ij_end-2*iip1)
    271270#endif       
    272         else if (iadv(iq)==14) then
     271        else if (iadv(iq)==14) then
    273272#ifdef _ADV_HALLO
    274273          call vlxqs_p(zq(1,1,iq),pente_max,zm(1,1,iq),mu,qsat,
     
    276275#endif   
    277276        else
    278        
    279           stop 'vlspltgen_p : schema non parallelise'
     277       
     278          stop 'vlspltgen_p : schema non parallelise'
    280279     
    281280        endif
     
    301300
    302301        if(iadv(iq) == 0) then
    303        
    304           cycle
    305        
    306         else if (iadv(iq)==10) then
     302       
     303          cycle
     304       
     305        else if (iadv(iq)==10) then
    307306       
    308307          call vly_p(zq(1,1,iq),pente_max,zm(1,1,iq),mv)
    309308 
    310         else if (iadv(iq)==14) then
     309        else if (iadv(iq)==14) then
    311310     
    312311          call vlyqs_p(zq(1,1,iq),pente_max,zm(1,1,iq),mv,qsat)
    313312 
    314313        else
    315        
    316           stop 'vlspltgen_p : schema non parallelise'
     314       
     315          stop 'vlspltgen_p : schema non parallelise'
    317316     
    318317        endif
     
    324323
    325324        if(iadv(iq) == 0) then
    326          
    327           cycle
    328        
    329         else if (iadv(iq)==10 .or. iadv(iq)==14 ) then
     325         
     326          cycle
     327       
     328        else if (iadv(iq)==10 .or. iadv(iq)==14 ) then
    330329
    331330c$OMP BARRIER       
     
    350349c$OMP MASTER
    351350          call VTe(VTHallo)
    352 c$OMP END MASTER       
    353 c$OMP BARRIER
    354         else
    355        
    356           stop 'vlspltgen_p : schema non parallelise'
     351c$OMP END MASTER       
     352c$OMP BARRIER
     353        else
     354       
     355          stop 'vlspltgen_p : schema non parallelise'
    357356     
    358357        endif
     
    369368c$OMP MASTER
    370369      call VTe(VTHallo)
    371 c$OMP END MASTER       
     370c$OMP END MASTER       
    372371
    373372c$OMP BARRIER
     
    375374
    376375        if(iadv(iq) == 0) then
    377          
    378           cycle
    379        
    380         else if (iadv(iq)==10 .or. iadv(iq)==14 ) then
     376         
     377          cycle
     378       
     379        else if (iadv(iq)==10 .or. iadv(iq)==14 ) then
    381380c$OMP BARRIER       
    382381
     
    388387c$OMP BARRIER       
    389388        else
    390        
    391           stop 'vlspltgen_p : schema non parallelise'
     389       
     390          stop 'vlspltgen_p : schema non parallelise'
    392391     
    393392        endif
     
    414413
    415414        if(iadv(iq) == 0) then
    416        
    417           cycle
    418        
    419         else if (iadv(iq)==10) then
     415       
     416          cycle
     417       
     418        else if (iadv(iq)==10) then
    420419       
    421420          call vly_p(zq(1,1,iq),pente_max,zm(1,1,iq),mv)
    422421 
    423         else if (iadv(iq)==14) then
     422        else if (iadv(iq)==14) then
    424423     
    425424          call vlyqs_p(zq(1,1,iq),pente_max,zm(1,1,iq),mv,qsat)
    426425 
    427426        else
    428        
    429           stop 'vlspltgen_p : schema non parallelise'
     427       
     428          stop 'vlspltgen_p : schema non parallelise'
    430429     
    431430        endif
     
    436435
    437436        if(iadv(iq) == 0) then
    438          
    439           cycle
    440        
    441         else if (iadv(iq)==10) then
     437         
     438          cycle
     439       
     440        else if (iadv(iq)==10) then
    442441       
    443442          call vlx_p(zq(1,1,iq),pente_max,zm(1,1,iq),mu,
    444443     &               ij_begin,ij_end)
    445444 
    446         else if (iadv(iq)==14) then
     445        else if (iadv(iq)==14) then
    447446     
    448447          call vlxqs_p(zq(1,1,iq),pente_max,zm(1,1,iq),mu,qsat,
     
    450449 
    451450        else
    452        
     451       
    453452          stop 'vlspltgen_p : schema non parallelise'
    454453     
     
    469468           DO ij=ijb,ije
    470469c             print *,'zq-->',ij,l,iq,zq(ij,l,iq)
    471 c            print *,'q-->',ij,l,iq,q(ij,l,iq)
    472              q(ij,l,iq)=zq(ij,l,iq)
     470c             print *,'q-->',ij,l,iq,q(ij,l,iq)
     471             q(ij,l,iq)=zq(ij,l,iq)
    473472           ENDDO
    474473        ENDDO
Note: See TracChangeset for help on using the changeset viewer.