Ignore:
Timestamp:
Dec 26, 2021, 10:27:36 PM (3 years ago)
Author:
dcugnet
Message:

Fixes for previous commit:

  • few tracers(:)%nqChilds were errouneously replaced with tarcers(:)%nqDesc
  • minor changes
Location:
LMDZ6/trunk/libf/dyn3d
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d/dynetat0.f90

    r4050 r4052  
    137137   !           Rayleigh distillation law.
    138138    iName = tracers(iq)%iso_iName
     139    IF(.NOT.ok_isotopes .OR. iName<=0) CYCLE
    139140    iZone = tracers(iq)%iso_iZone
    140141    iPhase= tracers(iq)%iso_iPhase
    141142    iqParent = tracers(iq)%iqParent
    142     IF(ok_isotopes .AND. iName>0) THEN
    143       IF(iZone==0) q(:,:,:,iq) = q(:,:,:,iqParent)*tnat(iName)    &
    144                                *(q(:,:,:,iqParent)/30.e-3)**(alpha_ideal(iName)-1.)
    145       IF(iZone==1) q(:,:,:,iq) = q(:,:,:,iqiso(iso_indnum(iq),iPhase))
    146     END IF
     143    IF(iZone==0) q(:,:,:,iq) = q(:,:,:,iqParent)*tnat(iName)    &
     144                             *(q(:,:,:,iqParent)/30.e-3)**(alpha_ideal(iName)-1.)
     145    IF(iZone==1) q(:,:,:,iq) = q(:,:,:,iqiso(iso_indnum(iq),iPhase))
    147146  END DO
    148147
  • LMDZ6/trunk/libf/dyn3d/iniacademic.F90

    r4050 r4052  
    278278           do iq=1,nqtot
    279279              q(:,:,iq)=0.
     280!              IF(tracers(iq)%name == 'H2O'//phases_sep//'g') q(:,:,iq)=1.e-10
     281!              IF(tracers(iq)%name == 'H2O'//phases_sep//'l') q(:,:,iq)=1.e-15
    280282              IF(tracers(iq)%name == 'H2Ov') q(:,:,iq)=1.e-10
    281283              IF(tracers(iq)%name == 'H2Ol') q(:,:,iq)=1.e-15
     
    284286              ! distill de Rayleigh très simplifiée
    285287              iName = tracers(iq)%iso_iName
     288              if (.NOT.ok_isotopes .OR. iName <= 0) CYCLE
    286289              iZone = tracers(iq)%iso_iZone
    287290              iPhase= tracers(iq)%iso_iPhase
    288291              iqParent = tracers(iq)%iqParent
    289               if (ok_isotopes .AND. iName > 0) then
    290                 if (iZone == 0) q(:,:,iq) = q(:,:,iqParent)*tnat(iName) &
    291                                           *(q(:,:,iqParent)/30.e-3)**(alpha_ideal(iName)-1)
    292                 if (iZone == 1) q(:,:,iq) = q(:,:,iqiso(iso_indnum(iq),iPhase))
    293               endif !if (ok_isotopes) then
    294 
     292              if (iZone == 0) q(:,:,iq) = q(:,:,iqParent)*tnat(iName) &
     293                                        *(q(:,:,iqParent)/30.e-3)**(alpha_ideal(iName)-1)
     294              if (iZone == 1) q(:,:,iq) = q(:,:,iqiso(iso_indnum(iq),iPhase))
    295295           enddo
    296296        else
  • LMDZ6/trunk/libf/dyn3d/vlsplt.F

    r4050 r4052  
    464464        enddo
    465465      enddo
    466       do ifils=1,tracers(iq)%nqDescen
     466      do ifils=1,tracers(iq)%nqChilds
    467467        iq2=tracers(iq)%iqDescen(ifils)
    468468        call vlx(Ratio,pente_max,masseq,u_mq,iq2)
     
    10151015      enddo
    10161016       
    1017       do ifils=1,tracers(iq)%nqDescen
     1017      do ifils=1,tracers(iq)%nqChilds
    10181018        iq2=tracers(iq)%iqDescen(ifils)
    10191019        call vlz(Ratio,pente_max,masseq,wq,iq2)
  • LMDZ6/trunk/libf/dyn3d/vlspltqs.F

    r4050 r4052  
    786786! CRisi: appel récursif de l'advection sur les fils.
    787787! Il faut faire ça avant d'avoir mis à jour q et masse
    788       !write(*,*) 'vlyqs 689: iq,nqDesc(iq)=',iq,tracers(iq)%nqDescen
     788      !write(*,*) 'vlyqs 689: iq,nqChilds(iq)=',iq,tracers(iq)%nqChilds
    789789   
    790790      do ifils=1,tracers(iq)%nqDescen
Note: See TracChangeset for help on using the changeset viewer.