/[MITgcm]/MITgcm/pkg/ecco/ecco_cost_init_fixed.F
ViewVC logotype

Log of /MITgcm/pkg/ecco/ecco_cost_init_fixed.F

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


Links to HEAD: (view) (download) (annotate)
Links to checkpoint65b: (view) (download) (annotate)
Sticky Tag:

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Mon Apr 7 18:08:50 2014 UTC (10 years, 1 month ago) by atn
Branch: MAIN
CVS Tags: checkpoint64v, checkpoint64w, checkpoint64x, checkpoint64y, checkpoint64z, checkpoint65, checkpoint65a, checkpoint65b, checkpoint65c, checkpoint65d, checkpoint65e
Changes since 1.32: +11 -1 lines
Diff to previous 1.32
Replace hardcoded mdt year range with runtime param mdt[start,end]date[1,2],
rename variable "tpmean" as "mdt" and "topexmeanfile" as "mdtdatfile",
add error+stop statement if "topexmeanfile" is used in data.ecco


Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Sat Mar 30 11:57:47 2013 UTC (11 years, 2 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint64f, checkpoint64g, checkpoint64h, checkpoint64i, checkpoint64j, checkpoint64k, checkpoint64l, checkpoint64m, checkpoint64n, checkpoint64o, checkpoint64p, checkpoint64q, checkpoint64r, checkpoint64s, checkpoint64t, checkpoint64u
Changes since 1.31: +2 -2 lines
Diff to previous 1.31
- distinct values of gencost_flag :
  0) inactive gencost
  1) standard active gencost
  2) pre-specified cost term with creation of a barfile
  -1) pre-specified cost term using otherwise created barfiles


Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Tue Oct 2 17:01:34 2012 UTC (11 years, 8 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint64, checkpoint64a, checkpoint64b, checkpoint64c, checkpoint64d, checkpoint64e
Changes since 1.30: +3 -3 lines
Diff to previous 1.30
- cost_gencost_assignperiod.F, ecco_cost_init_fixed.F : add missing gencost_flag test.
- cost_averagesfields.F, ecco_cost_init_barfiles.F : add missing using_gencost test.
- ecco_cost_init_barfiles.F, cost_averagesfields.F : add using_altim, etc. tests.
- ecco_check.F : switch off cost term if no a single file was found (regarless
                 of startdates for this general test).
- ecco_readparms.F : bug fix ('OR'; from previous rev) and print additional
                 information when failed test stops.


Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Tue Oct 2 01:40:03 2012 UTC (11 years, 8 months ago) by gforget
Branch: MAIN
Changes since 1.29: +2 -8 lines
Diff to previous 1.29
- introduce gencost_flag(k) that is currently one of 3 values :
   0  if cost term k is not used
   1  if cost term is fully interactive (i.e. uses gencost_datafile)
  -1  if ocst term is pre-specified (i.e. uses gencost_name)
- introduce using_gencost(k) logical in line with using_topex etc.

- ecco_readparms.F : assign using_gencost(k) & gencost_flag(k) based
  on gencost_datafile(k).NE.' ' (fully interactive cost terms)
  or on gencost_name(k) (for pre-specified generic cost terms)
- throughout : replace "if ( gencost_datafile(num_var) .ne. ' ' )"
  with "if ( using_gencost(num_var) ) then"
- throughout : rm ALLOW_GENCOST_FREEFORM CPP option. The same
  thing is now achieved dynamically based on gencost_flag.
- ecco_check.F : add gencost checks, account for "data"startdate
  in ecco_check_files, add topexmean check.


Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Sun Sep 30 20:33:55 2012 UTC (11 years, 8 months ago) by gforget
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28
ecco_cost.h
        - add using_cost_altim, using_cost_sst,using_cost_bp,using_cost_scat
          to allow for run time switch of main cost terms. Those switches
          are further reset to false if files are missing (ecco_check.F)
cost_gencost_all.F
        - using_cost_altim, using_cost_sst
cost_hyd.F
        - using_cost_sst
ecco_check.F
        - restrict maxNumDays test to relevant cases
        - add ECCO_CHECK_FILES S\R that test whether the input binary files
          are there, and otherwise switch off the corresponding run
          time flag. Rather than do the full run then crash in ecco_cost_driver.
        - thus reset using_cost_bp, using_cost_altim, using_cost_sst,
          using_cost_scat if necessary.
ecco_cost_driver.F
        - using_cost_altim, using_cost_bp, using_cost_scat
ecco_cost_init_fixed.F
        - remove tpTimeMask etc. bloc when not needed (i.e. undef ALLOW_NEW_SSH_COST)
ecco_cost_weights.F
        - dont try to read data_errfile if it is not there
        - using_cost_sst, using_cost_altim, using_cost_bp, using_cost_scat
ecco_readparms.F
        - activate using_cost_sst, using_cost_altim, using_cost_bp, using_cost_scat
        - also activate using_topex, using_ers, and using_gfo


Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Fri Aug 10 19:45:27 2012 UTC (11 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63r, checkpoint63s
Changes since 1.27: +6 -6 lines
Diff to previous 1.27
include ECCO_OPTIONS.h instead of COST_CPPOPTIONS.h


Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Fri Jul 6 23:03:40 2012 UTC (11 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63q
Changes since 1.26: +2 -3 lines
Diff to previous 1.26
move #include "AD_CONFIG.h" after the other included OPTIONS files
and remove PACKAGES_CONFIG.h


Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Sat Apr 7 00:12:03 2012 UTC (12 years, 1 month ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63p
Changes since 1.25: +5 -1 lines
Diff to previous 1.25
Move cal-specific calls from ecco_readparms.F to ecco_cost_init_fixed.F
as per jmc request


Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Mon Jun 27 13:13:38 2011 UTC (12 years, 11 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint63, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63l
Changes since 1.24: +5 -1 lines
Diff to previous 1.24
- bug fix: those tests break the ALLOW_GENCOST_FREEFORM case.


Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Sun Jun 19 22:22:27 2011 UTC (12 years, 11 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint62z
Changes since 1.23: +7 -5 lines
Diff to previous 1.23
Another missing if-statement


Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Tue Sep 7 16:13:00 2010 UTC (13 years, 8 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint62k, checkpoint62l, checkpoint62m, checkpoint62n, checkpoint62o, checkpoint62p, checkpoint62q, checkpoint62r, checkpoint62s, checkpoint62t, checkpoint62u, checkpoint62v, checkpoint62w, checkpoint62x, checkpoint62y
Changes since 1.22: +24 -30 lines
Diff to previous 1.22
bug fix (gencost_nrec needs to be defined before
ecco_cost_init_barfiles.F is called)


Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Sun Aug 29 19:28:50 2010 UTC (13 years, 9 months ago) by gforget
Branch: MAIN
Changes since 1.21: +3 -1 lines
Diff to previous 1.21
Documenting ALLOW_GENCOST_CONTRIBUTION in ECCO_CPPOPTIONS.h
(see extract below) and adding the ALLOW_GENCOST_FREEFORM sub-option.

C       >>> ALLOW_GENCOST_CONTRIBUTION: interactive way to add basic 2D cost function terms.
C       > In data.ecco, this requires the specification of data file (name, frequency,
C         etc.), bar file name for corresp. model average, standard error file name, etc.
C       > In addition, adding such cost terms requires editing ecco_cost.h to increase
C         NGENCOST, and editing cost_gencost_customize.F to implement the actual
C         model average (i.e. the bar file content).
#undef ALLOW_GENCOST_CONTRIBUTION
C       >>> free form version of GENCOST: allows one to use otherwise defined elements (e.g.
C         psbar and and topex data) while taking advantage of the cost function/namelist slots
C         that can be made available using ALLOW_GENCOST_CONTRIBUTION. To this end
C         ALLOW_GENCOST_CONTRIBUTION simply switches off tests that check whether all of the
C         gencost elements (e.g. gencost_barfile and gencost_datafile) are specified in data.ecco.
C       > While this option increases flexibility within the gencost framework, it implies more room
C         for error, so it should be used cautiously, and with good knowledge of the rest of pkg/ecco.
C       > It requires providing a specific cost function routine, and editing cost_gencost_all.F accordingly.
#undef ALLOW_GENCOST_FREEFORM


Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Sat Apr 17 20:40:47 2010 UTC (14 years, 1 month ago) by gforget
Branch: MAIN
CVS Tags: checkpoint62f, checkpoint62g, checkpoint62h, checkpoint62i, checkpoint62j
Changes since 1.20: +2 -2 lines
Diff to previous 1.20
gencost: a couple of fixes + modifications in ecco_readparams.F to
 allow the generation of bar files without specifying data sets.


Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Mon Mar 22 02:19:35 2010 UTC (14 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62d, checkpoint62e
Changes since 1.19: +2 -2 lines
Diff to previous 1.19
finish removing unbalanced quote (single or double) in commented line


Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Sat Mar 13 23:12:48 2010 UTC (14 years, 2 months ago) by heimbach
Branch: MAIN
Changes since 1.18: +28 -1 lines
Diff to previous 1.18
Updating gencost code
* merge B. Cheng's changes
* bug fixes (especially cost_generic_all.F)


Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Wed Sep 30 15:49:56 2009 UTC (14 years, 8 months ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint61w, checkpoint61x, checkpoint61y, checkpoint61z, checkpoint62, checkpoint62a, checkpoint62b, checkpoint62c
Changes since 1.17: +31 -20 lines
Diff to previous 1.17
catch the case of empty filenames


Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Mon Mar 23 23:29:29 2009 UTC (15 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint61l, checkpoint61m, checkpoint61n, checkpoint61o, checkpoint61p, checkpoint61q, checkpoint61r, checkpoint61s, checkpoint61t, checkpoint61u, checkpoint61v
Changes since 1.16: +2 -2 lines
Diff to previous 1.16
fix syntax format for writing integer


Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Tue Mar 17 15:35:24 2009 UTC (15 years, 2 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint61j, checkpoint61k
Changes since 1.15: +2 -1 lines
Diff to previous 1.15
Declare msgbuf seems useful...


Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Sat Mar 14 12:12:12 2009 UTC (15 years, 2 months ago) by heimbach
Branch: MAIN
Changes since 1.14: +17 -1 lines
Diff to previous 1.14
Add an extra check on values of (SSH)TimeMask


Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Sat Mar 14 11:53:41 2009 UTC (15 years, 2 months ago) by heimbach
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13
o A final fix in cost_ssh_new(!)
o Move ecco_check to earlier instance
o Increase maxNumDays to 17yr
o A few debug calls


Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Fri Mar 13 06:00:31 2009 UTC (15 years, 2 months ago) by heimbach
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12
Fix a myRiad of bugs...


Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Fri Mar 13 01:58:37 2009 UTC (15 years, 2 months ago) by heimbach
Branch: MAIN
Changes since 1.11: +70 -3 lines
Diff to previous 1.11
Modify cost calculation for SSH anomalies:
* Model mean is sampled according to altimeter data for each instrument
* Period for computing model mean can be prescribed through daily flags;
  corresponding daily flag time series provided in files
  tpTimeMaskFile, ersTimeMaskFile, gfoTimeMaskFile
NOT YET TESTED.


Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Tue Oct 9 00:02:51 2007 UTC (16 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint59i, checkpoint59j, checkpoint59k, checkpoint59l, checkpoint59m, checkpoint59n, checkpoint59o, checkpoint59p, checkpoint59q, checkpoint59r, checkpoint60, checkpoint61, checkpoint61a, checkpoint61b, checkpoint61c, checkpoint61d, checkpoint61e, checkpoint61f, checkpoint61g, checkpoint61h, checkpoint61i
Changes since 1.10: +6 -5 lines
Diff to previous 1.10
add missing cvs $Header:$ or $Name:$


Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Thu Sep 20 22:01:37 2007 UTC (16 years, 8 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint59h
Changes since 1.9: +4 -1 lines
Diff to previous 1.9
Preparing bottom pressure cost for time-varying GRACE data.


Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Thu Sep 20 18:23:34 2007 UTC (16 years, 8 months ago) by heimbach
Branch: MAIN
Changes since 1.8: +37 -2 lines
Diff to previous 1.8
Adding cost function for daily Florida Strait transport.


Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Fri Jul 7 22:53:36 2006 UTC (17 years, 10 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint58m_post, checkpoint58n_post, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, checkpoint58r_post, checkpoint58s_post, checkpoint58t_post, checkpoint58u_post, checkpoint58v_post, checkpoint58w_post, checkpoint58x_post, checkpoint58y_post, checkpoint59, checkpoint59a, checkpoint59b, checkpoint59c, checkpoint59d, checkpoint59e, checkpoint59f, checkpoint59g
Changes since 1.7: +4 -1 lines
Diff to previous 1.7
o cost_averagesflags now returns year indices in addition to day, month
o sflux balance is performed on annual basis
  (sflxumm, sfluxmm2, bal_sfluxmm)
o for SSH anomaly, separate more cleanly contrib from T/P, ERS, GFO,
  including separate counting and multipliers


Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sat May 6 14:33:25 2006 UTC (18 years, 1 month ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint58e_post, checkpoint58f_post, checkpoint58g_post, checkpoint58h_post, checkpoint58i_post, checkpoint58j_post, checkpoint58k_post
Changes since 1.6: +1 -5 lines
Diff to previous 1.6
Make pkg/profile fully independent of ecco,cost, etc. stuff
to be able to use it in pure forward.


Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Tue Apr 25 19:37:29 2006 UTC (18 years, 1 month ago) by heimbach
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5
One more ifdef ALLOW_PROFILES


Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Thu Mar 23 23:06:48 2006 UTC (18 years, 2 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint58d_post
Changes since 1.4: +5 -1 lines
Diff to previous 1.4
Adding Gael Forget profile cost code.


Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Wed Feb 15 20:01:51 2006 UTC (18 years, 3 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint58b_post, checkpoint58c_post
Changes since 1.3: +4 -1 lines
Diff to previous 1.3
o Adding GFO observations
o Modified masks to add costs beyond TOPEX 66N/S


Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Thu Aug 25 16:10:42 2005 UTC (18 years, 9 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpint57u_post, checkpoint57r_post, checkpoint57s_post, checkpoint57t_post, checkpoint57v_post, checkpoint57w_post, checkpoint57x_post, checkpoint57y_post, checkpoint57y_pre, checkpoint57z_post, checkpoint58, checkpoint58a_post
Changes since 1.2: +3 -17 lines
Diff to previous 1.2
Moving seaice-related cost to pkg/seaice/


Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Mon Nov 17 22:32:33 2003 UTC (20 years, 6 months ago) by heimbach
Branch: MAIN
CVS Tags: branch-netcdf, checkpoint52a_post, checkpoint52b_post, checkpoint52b_pre, checkpoint52c_post, checkpoint52d_post, checkpoint52d_pre, checkpoint52e_post, checkpoint52e_pre, checkpoint52f_post, checkpoint52f_pre, checkpoint52h_pre, checkpoint52i_post, checkpoint52i_pre, checkpoint52j_post, checkpoint52j_pre, checkpoint52k_post, checkpoint52l_post, checkpoint52l_pre, checkpoint52m_post, checkpoint52n_post, checkpoint53, checkpoint53a_post, checkpoint53b_post, checkpoint53b_pre, checkpoint53c_post, checkpoint53d_post, checkpoint53d_pre, checkpoint53f_post, checkpoint53g_post, checkpoint54, checkpoint54a_post, checkpoint54a_pre, checkpoint54b_post, checkpoint54c_post, checkpoint54d_post, checkpoint54e_post, checkpoint54f_post, checkpoint55, checkpoint55a_post, checkpoint55b_post, checkpoint55c_post, checkpoint55d_post, checkpoint55d_pre, checkpoint55e_post, checkpoint55f_post, checkpoint55g_post, checkpoint55h_post, checkpoint55i_post, checkpoint55j_post, checkpoint56, checkpoint56a_post, checkpoint56b_post, checkpoint56c_post, checkpoint57, checkpoint57a_post, checkpoint57a_pre, checkpoint57b_post, checkpoint57c_post, checkpoint57c_pre, checkpoint57d_post, checkpoint57e_post, checkpoint57f_post, checkpoint57f_pre, checkpoint57g_post, checkpoint57g_pre, checkpoint57h_done, checkpoint57h_post, checkpoint57h_pre, checkpoint57i_post, checkpoint57j_post, checkpoint57k_post, checkpoint57l_post, checkpoint57m_post, checkpoint57n_post, checkpoint57o_post, checkpoint57p_post, checkpoint57q_post, eckpoint57e_pre, hrcube4, hrcube5, hrcube_1, hrcube_2, hrcube_3
Branch point for: netcdf-sm0
Changes since 1.1: +2 -1 lines
Diff to previous 1.1
fixes for DIVA


Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Thu Nov 6 22:10:08 2003 UTC (20 years, 6 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint51u_post, checkpoint52, checkpoint52a_pre, ecco_c52_e35
o merging from ecco-branch
o pkg/ecco now containes ecco-specific part of cost function
o top level routines the_main_loop, forward_step
  supersede those in model/src/
  previous input data.cost now in data.ecco
  (new namelist ecco_cost_nml)


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.22