Ignore:
Timestamp:
May 21, 2014, 6:09:22 PM (11 years ago)
Author:
msylvestre
Message:

LMDZ.GENERIC : For 1d model, the planetary radius can now be read in rcm1d.def. It is mandatory to set it when the rings_shadow option (callphys.def) is set to true. The message errors when a parameter is missing in rcm1d.def deals with rcm1d.def and not run.def any more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/rcm1d.F

    r1267 r1275  
    356356      call getin("g",g)
    357357      IF (g.eq.-99999.) THEN
    358           PRINT *,"STOP. I NEED g IN RUN.DEF."
     358          PRINT *,"STOP. I NEED g IN RCM1D.DEF."
    359359          STOP
    360360      ELSE
     
    362362      ENDIF
    363363
    364       !rad = -99999.
    365       !PRINT *,'PLANETARY RADIUS in m ?'
    366       !call getin("rad",rad)
    367       !IF (rad.eq.-99999.) THEN
    368       !    PRINT *,"STOP. I NEED rad IN RUN.DEF."
    369       !    STOP
    370       !ELSE
    371       !    PRINT *,"--> rad = ",rad
    372       !ENDIF
     364      rad = -99999.
     365      PRINT *,'PLANETARY RADIUS in m ?'
     366      call getin("rad",rad)
     367      ! Planetary  radius is needed to compute shadow of the rings
     368      IF (rad.eq.-99999. .and. rings_shadow .eq. .true.) THEN
     369          PRINT *,"STOP. I NEED rad IN RCM1D.DEF."
     370          STOP
     371      ELSE
     372          PRINT *,"--> rad = ",rad
     373      ENDIF
    373374
    374375      daysec = -99999.
     
    376377      call getin("daysec",daysec)
    377378      IF (daysec.eq.-99999.) THEN
    378           PRINT *,"STOP. I NEED daysec IN RUN.DEF."
     379          PRINT *,"STOP. I NEED daysec IN RCM1D.DEF."
    379380          STOP
    380381      ELSE
     
    389390      call getin("year_day",year_day)
    390391      IF (year_day.eq.-99999.) THEN
    391           PRINT *,"STOP. I NEED year_day IN RUN.DEF."
     392          PRINT *,"STOP. I NEED year_day IN RCM1D.DEF."
    392393          STOP
    393394      ELSE
     
    399400      call getin("periastr",periastr)
    400401      IF (periastr.eq.-99999.) THEN
    401           PRINT *,"STOP. I NEED periastr IN RUN.DEF."
     402          PRINT *,"STOP. I NEED periastr IN RCM1D.DEF."
    402403          STOP
    403404      ELSE
     
    409410      call getin("apoastr",apoastr)
    410411      IF (apoastr.eq.-99999.) THEN
    411           PRINT *,"STOP. I NEED apoastr IN RUN.DEF."
     412          PRINT *,"STOP. I NEED apoastr IN RCM1D.DEF."
    412413          STOP
    413414      ELSE
     
    419420      call getin("peri_day",peri_day)
    420421      IF (peri_day.eq.-99999.) THEN
    421           PRINT *,"STOP. I NEED peri_day IN RUN.DEF."
     422          PRINT *,"STOP. I NEED peri_day IN RCM1D.DEF."
    422423          STOP
    423424      ELSE IF (peri_day.gt.year_day) THEN
     
    432433      call getin("obliquit",obliquit)
    433434      IF (obliquit.eq.-99999.) THEN
    434           PRINT *,"STOP. I NEED obliquit IN RUN.DEF."
     435          PRINT *,"STOP. I NEED obliquit IN RCM1D.DEF."
    435436          STOP
    436437      ELSE
     
    442443      call getin("psurf",psurf)
    443444      IF (psurf.eq.-99999.) THEN
    444           PRINT *,"STOP. I NEED psurf IN RUN.DEF."
     445          PRINT *,"STOP. I NEED psurf IN RCM1D.DEF."
    445446          STOP
    446447      ELSE
Note: See TracChangeset for help on using the changeset viewer.