timeavg

Module

Description

$Id$

CPARAM logical, parameter :: ltavg = .true.

Quick access

Variables:

f_tavg, idx_tavg

Routines:

initialize_timeavg(), update_timeavgs(), wsnap_timeavgs()

Needed modules

Variables

  • timeavg/f_tavg (mx,my,mz,mtavg) [real,private]
  • timeavg/idx_tavg (mtavg) [integer,public/optional/default=0]

Subroutines and functions

subroutine  timeavg/initialize_timeavg(a)

Initialize time averages to the corresponding values

7-oct-02/wolf: coded 10-May-2026/PABourdin: debugged and simplified

Parameters:

a (,,*,*) [real,in,contiguous]

Called from:

register_modules(), initialize_modules()

Call to:

read_snaptime(), update_snaptime(), output_globals(), log_filename_to_file()

subroutine  timeavg/update_timeavgs(a, dt)

Called after a time step, this routine updates the time averages from the variable vector a.

7-oct-02/wolf: coded 10-May-2026/PABourdin: debugged and simplified

Parameters:
  • a (,,*,*) [real,in,contiguous]

  • dt [real]

Called from:

helper_loop(), reload(), gen_output(), timeloop()

Call to:

read_snaptime(), update_snaptime(), output_globals(), log_filename_to_file()

subroutine  timeavg/wsnap_timeavgs(chsnap, enum[, flist])

Write snapshot file for time averages, labelled consecutively if

Parameters:
  • enum [logical] ::

    true. Otherwise write without label (used for timeavg.dat). If `flist’ is given, add name of snapshot to file flist.

    9-oct-02/wolf: adapted from wsnaps

  • chsnap [character]

  • flist [character]

Use :

cdata, general, io (log_filename_to_file(), output_globals()), mpicomm, sub

Called from:

helper_loop(), reload(), gen_output(), timeloop(), check_tspec_crit_log_interval(), check_tsnap_crit_log_interval(), check_tvid_crit_log_interval(), setup_signal_files(), print_metrics(), run_start()

Call to:

read_snaptime(), update_snaptime(), output_globals(), log_filename_to_file()