/[MITgcm]/MITgcm_contrib/mlosch/optim_m1qn3/m1qn3_offline.F
ViewVC logotype

Diff of /MITgcm_contrib/mlosch/optim_m1qn3/m1qn3_offline.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by mlosch, Thu Apr 26 11:10:06 2012 UTC revision 1.7 by mlosch, Wed Mar 20 16:05:00 2019 UTC
# Line 1  Line 1 
1    C $Header$
2    C $Name$    
3    C    
4    C     The original m1qn3 has been modified to work "offline", i.e.
5    C     the simulator and the driver of m1qn3_offline are separate
6    C     programs that are called alternatingly from a (shell-)script.
7    C     This requires that the "state" of m1qn3 is saved before
8    C     this program terminates. Communication with the routine
9    C     writing and restoring the state of m1qn3 is achieved via
10    C     3 new common-blocks that are contained in 3 header files.
11    C
12    C     Apr27, 2012, Martin.Losch@awi.de
13    C    
14        subroutine m1qn3_offline        subroutine m1qn3_offline
15       &     (simul,prosca,ctonb,ctcab,n,x,f,g,dxmin,df1,       &     (simul,prosca,ctonb,ctcab,n,x,f,g,dxmin,df1,
16       &     epsg,normtype,impres,io,imode,omode,niter,nsim,       &     epsg,normtype,impres,io,imode,omode,niter,nsim,
# Line 416  c Line 429  c
429       &    reverse,reentry,izs(*)       &    reverse,reentry,izs(*)
430        real rzs(*)        real rzs(*)
431        double precision x(n),f,g(n),dxmin,df1,epsg,d(n),gg(n),diag(n),        double precision x(n),f,g(n),dxmin,df1,epsg,d(n),gg(n),diag(n),
432       &    aux(n),alpha(m),ybar(n,1),sbar(n,1),dzs(*)       &    aux(n),alpha(m),ybar(n,*),sbar(n,*),dzs(*)
433    CML     &    aux(n),alpha(m),ybar(n,1),sbar(n,1),dzs(*)
434        external simul,prosca,ctonb,ctcab        external simul,prosca,ctonb,ctcab
435  c  c
436  c         variables locales  c         variables locales
437  c  c
438        logical skip_update        logical skip_update
439        integer i,moderl        integer i
       double precision preco,precos,ys,den,dk1,ps,ps2,hp0  
440  #include "m1qn3a_common.h"  #include "m1qn3a_common.h"
441  CML      logical sscale,cold,warm,skip_update  CML      logical sscale,cold,warm,skip_update
442  CML      integer i,itmax,moderl,isim,jcour  CML      integer i,itmax,moderl,isim,jcour
# Line 1120  c Line 1133  c
1133  c --- variables locales  c --- variables locales
1134  c  c
1135  #include "mlis3_common.h"        #include "mlis3_common.h"      
1136        logical t_increased        integer i
1137        integer i,indica,indicd        double precision taa,ps
       double precision tg,fg,fpg,td,ta,d2,fp,ffn,fd,  
      &     fpd,z,test,gauche,droite,taa,ps  
1138  CML      save t_increased,i,indica,indicd,tesf,tesd,tg,fg,fpg,td,ta,fa,  CML      save t_increased,i,indica,indicd,tesf,tesd,tg,fg,fpg,td,ta,fa,
1139  CML     &    fpa,d2,fn,fp,ffn,fd,fpd,z,test,barmin,barmul,barmax,barr,  CML     &    fpa,d2,fn,fp,ffn,fd,fpd,z,test,barmin,barmul,barmax,barr,
1140  CML     &    gauche,droite,taa,ps  CML     &    gauche,droite,taa,ps

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.22