Changeset 281


Ignore:
Timestamp:
10/11/14 23:36:13 (10 years ago)
Author:
dubos
Message:

Fixed bug preventing call to physics when itau_phys>1

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

Legend:

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

    r266 r281  
    7373    TYPE(t_physics_inout) :: args 
    7474 
    75     IF(MOD(it+1,itau_physics)==0) THEN 
     75    IF(MOD(it,itau_physics)==0) THEN 
    7676     
    7777       SELECT CASE(phys_type) 
     
    102102    USE physics_interface_mod 
    103103    USE physics_dcmip_mod, ONLY : full_physics_dcmip => full_physics 
     104    USE mpipara 
    104105    IMPLICIT NONE 
    105106    TYPE(t_field),POINTER :: f_phis(:) 
     
    132133    CASE (phys_DCMIP) 
    133134       CALL full_physics_dcmip 
     135    CASE DEFAULT 
     136       IF(is_mpi_root) PRINT *,'Internal error : illegal value of phys_type', phys_type 
     137       STOP 
    134138    END SELECT 
    135139 
  • codes/icosagcm/trunk/src/timeloop_gcm.f90

    r266 r281  
    290290    END IF 
    291291 
    292  
    293     IF (MOD(it,itau_physics)==0) THEN 
    294       CALL physics(it,f_phis, f_ps, f_theta_rhodz, f_u,  f_q) 
    295     ENDIF 
     292    CALL physics(it,f_phis, f_ps, f_theta_rhodz, f_u,  f_q) 
    296293     
    297294  ENDDO 
Note: See TracChangeset for help on using the changeset viewer.