FV3 Bundle
lorenz95::FieldL95 Class Reference

Class to represent fields for the L95 model. More...

#include <FieldL95.h>

Inheritance diagram for lorenz95::FieldL95:
[legend]
Collaboration diagram for lorenz95::FieldL95:
[legend]

Public Member Functions

 FieldL95 (const Resolution &)
 Constructors and basic operators. More...
 
 FieldL95 (const FieldL95 &, const Resolution &)
 
 FieldL95 (const FieldL95 &, const bool copy=true)
 
 ~FieldL95 ()
 
void zero ()
 Linear algebra. More...
 
void dirac (const eckit::Configuration &)
 
FieldL95operator= (const FieldL95 &)
 
FieldL95operator+= (const FieldL95 &)
 
FieldL95operator-= (const FieldL95 &)
 
FieldL95operator*= (const double &)
 
void diff (const FieldL95 &, const FieldL95 &)
 
void axpy (const double &, const FieldL95 &)
 
double dot_product_with (const FieldL95 &) const
 
void schur (const FieldL95 &)
 
void random ()
 
void generate (const eckit::Configuration &)
 
void read (std::ifstream &)
 Utilities. More...
 
void write (std::ofstream &) const
 
double rms () const
 
const int & resol () const
 Set and get. More...
 
double & operator[] (const int ii)
 
const double & operator[] (const int ii) const
 
std::vector< double > & asVector ()
 
const std::vector< double > & asVector () const
 
void interp (const LocsL95 &, GomL95 &) const
 Interpolate to given location. More...
 
void interpAD (const LocsL95 &, const GomL95 &)
 
void ug_coord (oops::UnstructuredGrid &, const int &) const
 Unstructured grid. More...
 
void field_to_ug (oops::UnstructuredGrid &, const int &) const
 
void field_from_ug (const oops::UnstructuredGrid &)
 

Static Public Member Functions

static const std::string classname ()
 

Private Member Functions

void print (std::ostream &) const
 

Private Attributes

const int resol_
 
std::vector< double > x_
 

Detailed Description

Class to represent fields for the L95 model.

Definition at line 36 of file FieldL95.h.

Constructor & Destructor Documentation

◆ FieldL95() [1/3]

lorenz95::FieldL95::FieldL95 ( const Resolution resol)
explicit

Constructors and basic operators.

Definition at line 30 of file FieldL95.cc.

◆ FieldL95() [2/3]

lorenz95::FieldL95::FieldL95 ( const FieldL95 other,
const Resolution resol 
)

Definition at line 37 of file FieldL95.cc.

◆ FieldL95() [3/3]

lorenz95::FieldL95::FieldL95 ( const FieldL95 other,
const bool  copy = true 
)
explicit

Definition at line 45 of file FieldL95.cc.

Here is the call graph for this function:

◆ ~FieldL95()

lorenz95::FieldL95::~FieldL95 ( )
inline

Definition at line 44 of file FieldL95.h.

Member Function Documentation

◆ asVector() [1/2]

std::vector<double>& lorenz95::FieldL95::asVector ( )
inline

Definition at line 69 of file FieldL95.h.

Here is the caller graph for this function:

◆ asVector() [2/2]

const std::vector<double>& lorenz95::FieldL95::asVector ( ) const
inline

Definition at line 70 of file FieldL95.h.

◆ axpy()

void lorenz95::FieldL95::axpy ( const double &  zz,
const FieldL95 rhs 
)

Definition at line 125 of file FieldL95.cc.

Here is the caller graph for this function:

◆ classname()

static const std::string lorenz95::FieldL95::classname ( )
inlinestatic

Definition at line 38 of file FieldL95.h.

◆ diff()

void lorenz95::FieldL95::diff ( const FieldL95 x1,
const FieldL95 x2 
)

Definition at line 117 of file FieldL95.cc.

Here is the caller graph for this function:

◆ dirac()

void lorenz95::FieldL95::dirac ( const eckit::Configuration &  config)

Definition at line 60 of file FieldL95.cc.

Here is the caller graph for this function:

◆ dot_product_with()

double lorenz95::FieldL95::dot_product_with ( const FieldL95 other) const

Definition at line 130 of file FieldL95.cc.

◆ field_from_ug()

void lorenz95::FieldL95::field_from_ug ( const oops::UnstructuredGrid ug)

Definition at line 179 of file FieldL95.cc.

Here is the caller graph for this function:

◆ field_to_ug()

void lorenz95::FieldL95::field_to_ug ( oops::UnstructuredGrid ug,
const int &  colocated 
) const

Definition at line 175 of file FieldL95.cc.

Here is the caller graph for this function:

◆ generate()

void lorenz95::FieldL95::generate ( const eckit::Configuration &  conf)

Definition at line 75 of file FieldL95.cc.

Here is the caller graph for this function:

◆ interp()

void lorenz95::FieldL95::interp ( const LocsL95 locs,
GomL95 gom 
) const

Interpolate to given location.

Definition at line 148 of file FieldL95.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ interpAD()

void lorenz95::FieldL95::interpAD ( const LocsL95 locs,
const GomL95 gom 
)

Definition at line 159 of file FieldL95.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator*=()

FieldL95 & lorenz95::FieldL95::operator*= ( const double &  fact)

Definition at line 112 of file FieldL95.cc.

◆ operator+=()

FieldL95 & lorenz95::FieldL95::operator+= ( const FieldL95 rhs)

Definition at line 100 of file FieldL95.cc.

◆ operator-=()

FieldL95 & lorenz95::FieldL95::operator-= ( const FieldL95 rhs)

Definition at line 106 of file FieldL95.cc.

◆ operator=()

FieldL95 & lorenz95::FieldL95::operator= ( const FieldL95 rhs)

Definition at line 94 of file FieldL95.cc.

◆ operator[]() [1/2]

double& lorenz95::FieldL95::operator[] ( const int  ii)
inline

Definition at line 67 of file FieldL95.h.

◆ operator[]() [2/2]

const double& lorenz95::FieldL95::operator[] ( const int  ii) const
inline

Definition at line 68 of file FieldL95.h.

◆ print()

void lorenz95::FieldL95::print ( std::ostream &  os) const
private

Definition at line 199 of file FieldL95.cc.

◆ random()

void lorenz95::FieldL95::random ( )

Definition at line 142 of file FieldL95.cc.

Here is the caller graph for this function:

◆ read()

void lorenz95::FieldL95::read ( std::ifstream &  fin)

Utilities.

Definition at line 183 of file FieldL95.cc.

Here is the caller graph for this function:

◆ resol()

const int& lorenz95::FieldL95::resol ( ) const
inline

Set and get.

Definition at line 66 of file FieldL95.h.

Here is the caller graph for this function:

◆ rms()

double lorenz95::FieldL95::rms ( ) const

Definition at line 192 of file FieldL95.cc.

Here is the caller graph for this function:

◆ schur()

void lorenz95::FieldL95::schur ( const FieldL95 rhs)

Definition at line 137 of file FieldL95.cc.

Here is the caller graph for this function:

◆ ug_coord()

void lorenz95::FieldL95::ug_coord ( oops::UnstructuredGrid ug,
const int &  colocated 
) const

Unstructured grid.

Definition at line 171 of file FieldL95.cc.

Here is the caller graph for this function:

◆ write()

void lorenz95::FieldL95::write ( std::ofstream &  fout) const

Definition at line 187 of file FieldL95.cc.

Here is the caller graph for this function:

◆ zero()

void lorenz95::FieldL95::zero ( )

Linear algebra.

Definition at line 56 of file FieldL95.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ resol_

const int lorenz95::FieldL95::resol_
private

Definition at line 83 of file FieldL95.h.

◆ x_

std::vector<double> lorenz95::FieldL95::x_
private

Definition at line 84 of file FieldL95.h.


The documentation for this class was generated from the following files: