Ignore:
Timestamp:
May 7, 2014, 12:35:26 PM (11 years ago)
Author:
emillour
Message:

Mars GCM and common dynamics:

Common dynamics:

  • correction in inidissip (only matters in Martian case)
  • added correction in addfi on theta to account for surface pressure change.

Mars GCM:
Some fixes and updates:

  • addfi (dyn3d): Add correction on theta when surface pressure changes
  • vdif_cd (phymars): Correction for coefficients in stable nighttime case
  • jthermcalc (aeronomars): Fix for some pathological cases (further investigations on the origin of these is needed)

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/aeronomars/jthermcalc.F

    r1119 r1238  
    158158      limup=1.e26
    159159
     160      ! Ehouarn: sanity check
     161      ! test that auxcolinp in monotonously increasing from 1 to nlayermx
     162      do j=1,nlayermx-1
     163        if (auxcolinp(j).gt.auxcolinp(j+1)) then
     164          !there is a problem
     165          write(*,*) "jthermcalc error: "
     166          write(*,*) "auxcolinp() not increasing with altitude index!"
     167          write(*,*) "j=",j," auxcolinp(j)=",auxcolinp(j)
     168          write(*,*) "                auxcolinp(j+1)=",auxcolinp(j+1)
     169          ! Quick fix:
     170          if (j==1) then
     171            auxcolinp(j)=auxcolinp(j+1)/2.
     172          else
     173            ! compute it as a geometric mean from encompassing values
     174            auxcolinp(j)=sqrt(auxcolinp(j-1)*auxcolinp(j+1))
     175          endif
     176          write(*,*) " Quick fixed to auxcolinp(j)=",auxcolinp(j)
     177        endif
     178      enddo
    160179
    161180c     Interpolations
Note: See TracChangeset for help on using the changeset viewer.