C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/ecco/cost_internal_params.F,v 1.5 2012/08/06 20:41:55 heimbach Exp $ C $Name: $ #include "COST_CPPOPTIONS.h" subroutine cost_internal_params( myiter, mytime, mythid ) c ================================================================== c SUBROUTINE cost_internal_params c ================================================================== c c o Evaluate cost function contributions of internal parameters adjustments. c c started: Gael Forget 17-Aug-2007 c c ================================================================== c SUBROUTINE cost_internal_params c ================================================================== implicit none c == global variables == #include "EEPARAMS.h" #include "SIZE.h" #include "PARAMS.h" #include "GRID.h" #include "cal.h" #include "ctrl.h" #include "ecco_cost.h" c == routine arguments == integer myiter _RL mytime integer mythid c == end of interface == c-- Eddy stress penalty term #ifdef ALLOW_EDDYPSI_COST_CONTRIBUTION call timer_start('cost_tau_eddy [ECCO SPIN-DOWN]', mythid) call cost_tau_eddy( myiter, mytime, mythid ) call timer_stop ('cost_tau_eddy [ECCO SPIN-DOWN]', mythid) #endif _BARRIER c-- GM coeffs penalty term #ifdef ALLOW_KAPGM_COST_CONTRIBUTION call timer_start('cost_kapgm [ECCO SPIN-DOWN]', mythid) call cost_kapgm( myiter, mytime, mythid ) call timer_stop ('cost_kapgm [ECCO SPIN-DOWN]', mythid) #endif _BARRIER c-- REDI coeffs penalty term #ifdef ALLOW_KAPREDI_COST_CONTRIBUTION call timer_start('cost_kapredi [ECCO SPIN-DOWN]', mythid) call cost_kapredi( myiter, mytime, mythid ) call timer_stop ('cost_kapredi [ECCO SPIN-DOWN]', mythid) #endif _BARRIER c-- DIFFKR coeffs penalty term #ifdef ALLOW_DIFFKR_COST_CONTRIBUTION call timer_start('cost_diffkr [ECCO SPIN-DOWN]', mythid) call cost_diffkr( myiter, mytime, mythid ) call timer_stop ('cost_diffkr [ECCO SPIN-DOWN]', mythid) #endif _BARRIER c-- Bottom Drag penalty term #ifdef ALLOW_BOTTOMDRAG_COST_CONTRIBUTION call timer_start('cost_bottomdrag [ECCO SPIN-DOWN]', mythid) call cost_bottomdrag( myiter, mytime, mythid ) call timer_stop ('cost_bottomdrag [ECCO SPIN-DOWN]', mythid) #endif _BARRIER end