Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Variables
timeunitmanager.cpp File Reference
#include "gmxpre.h"
#include "timeunitmanager.h"
#include <cstdlib>
#include <algorithm>
#include "gromacs/options/basicoptions.h"
#include "gromacs/options/ioptionscontainer.h"
#include "gromacs/options/options.h"
#include "gromacs/options/optionsvisitor.h"
#include "gromacs/utility/arrayref.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/gmxassert.h"
#include "gromacs/utility/stringutil.h"
+ Include dependency graph for timeunitmanager.cpp:

Description

Implements gmx::TimeUnitManager.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Classes

class  gmx::anonymous_namespace{timeunitmanager.cpp}::TimeOptionScaler< FloatingPointOptionInfo >
 Option visitor that scales time options. More...
 

Variables

const char *const anonymous_namespace{timeunitmanager.cpp}::g_timeUnits [] = { "fs", "ps", "ns", "us", "ms", "s" }
 Enum values for a time unit. More...
 
const double anonymous_namespace{timeunitmanager.cpp}::g_timeScaleFactors [] = { 1e-3, 1, 1e3, 1e6, 1e9, 1e12 }
 Scaling factors from each time unit to internal units (=picoseconds). More...