PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
mode_budget_offline.F90 File Reference

MODE_BUDGET_OFFLINE - simple implementation of the budget data structure for offline use. More...

Go to the source code of this file.

Data Types

type  mode_budget_offline::tbudgetdata_offline

Modules

module  mode_budget_offline

Functions/Subroutines

subroutine, public mode_budget_offline::budget_offline_conf (kbudgets, obudget)
subroutine, public mode_budget_offline::budget_offline_get_size (knbud)
subroutine, public mode_budget_offline::budget_offline_get_names (knbud, kbudget, hnames)
subroutine, public mode_budget_offline::budget_offline_get (kdimij, kdimk, knbud, ptend)

Variables

integer, parameter mode_budget_offline::nbuoff_max =200
integer, parameter mode_budget_offline::nbuoff_namelen =16
integer mode_budget_offline::nbuoff_n =0
integer, dimension(nbuoff_max) mode_budget_offline::nbuoff_budget =0
character(len=nbuoff_namelen), dimension(nbuoff_max) mode_budget_offline::cbuoff_name =' '
real, dimension(:,:,:), allocatable mode_budget_offline::xbuoff_tend
real, dimension(:,:,:), allocatable mode_budget_offline::xbuoff_init
character(len=nbuoff_namelen), dimension(nbudget_rh) mode_budget_offline::cbuoff_pending =' '

Detailed Description

MODE_BUDGET_OFFLINE - simple implementation of the budget data structure for offline use.

The contributions of the different processes are stored in a module array, as long as budgets are not read (and reset) with BUDGET_OFFLINE_GET. This array is indexed by entries, an entry being a (budget variable, process name) couple. Entries are registered the first time they are encountered.

The intended use (python binding) is:

  • BUDGET_OFFLINE_CONF to set the budget configuration (TBUCONF)
  • call to a parametrisation with TBUDGETS objects of type TBUDGETDATA_OFFLINE
  • BUDGET_OFFLINE_GET_SIZE to get the number of entries
  • BUDGET_OFFLINE_GET_NAMES to get the budget variable number and the process name of each entry
  • BUDGET_OFFLINE_GET to get the contributions (with the units of PVARS of the INIT_PHY, END_PHY and ADD_PHY procedures) and to reset the budgets

The INIT_PHY/END_PHY pairs contribute with the difference between the field given to END_PHY and the field given to INIT_PHY; ADD_PHY adds directly the field. In all cases, contributions are accumulated until the next call to BUDGET_OFFLINE_GET.

AUTHOR

S. Riette

MODIFICATIONS

Original Nov 2026

Definition in file mode_budget_offline.F90.