Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
readfields.h File Reference
#include "vlsv_reader.h"
#include "vlsvreaderinterface.h"
#include "field.h"
#include <fsgrid.hpp>
#include <algorithm>
#include <vector>
#include <string>
#include <set>
#include <cstring>
Include dependency graph for readfields.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG

Functions

std::vector< uint64_t > readCellIds (vlsvinterface::Reader &r)
template<class Reader>
static void detect_field_names (Reader &r)
template<class Reader>
std::vector< double > readFieldData (Reader &r, std::string &name, unsigned int numcomponents)
template<class Reader>
std::vector< double > readFsGridData (Reader &r, std::string &name, unsigned int numcomponents)
template<class Reader>
bool readNextTimestep (const std::string &filename_pattern, double t, int step, Field &E0, Field &E1, Field &B0, Field &B1, Field &V, bool doV, int &input_file_counter)
static bool readNextTimestep (const std::string &filename_pattern, double t, int step, Field &E0, Field &E1, Field &B0, Field &B1, Field &V, bool doV, int &input_file_counter)
template<class Reader>
void readfields (const char *filename, Field &E, Field &B, Field &V, bool doV=true)
static void readfields (const char *filename, Field &E, Field &B, Field &V, bool doV=true)
void debug_output (Field &F, const char *filename)

Variables

std::string B_field_name
std::string E_field_name
std::string V_field_name
bool do_divide_by_rho

Macro Definition Documentation

◆ DEBUG

#define DEBUG

Definition at line 34 of file readfields.h.

Function Documentation

◆ debug_output()

void debug_output ( Field & F,
const char * filename )

Definition at line 70 of file readfields.cpp.

Here is the call graph for this function:

◆ detect_field_names()

template<class Reader>
void detect_field_names ( Reader & r)
static

Definition at line 45 of file readfields.h.

Here is the caller graph for this function:

◆ readCellIds()

std::vector< uint64_t > readCellIds ( vlsvinterface::Reader & r)

Definition at line 39 of file readfields.cpp.

Here is the caller graph for this function:

◆ readFieldData()

template<class Reader>
std::vector< double > readFieldData ( Reader & r,
std::string & name,
unsigned int numcomponents )

Definition at line 108 of file readfields.h.

Here is the caller graph for this function:

◆ readfields() [1/2]

void readfields ( const char * filename,
Field & E,
Field & B,
Field & V,
bool doV = true )
static

Definition at line 557 of file readfields.h.

Here is the call graph for this function:

◆ readfields() [2/2]

template<class Reader>
void readfields ( const char * filename,
Field & E,
Field & B,
Field & V,
bool doV = true )

Definition at line 396 of file readfields.h.

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

◆ readFsGridData()

template<class Reader>
std::vector< double > readFsGridData ( Reader & r,
std::string & name,
unsigned int numcomponents )

Definition at line 157 of file readfields.h.

Here is the caller graph for this function:

◆ readNextTimestep() [1/2]

bool readNextTimestep ( const std::string & filename_pattern,
double t,
int step,
Field & E0,
Field & E1,
Field & B0,
Field & B1,
Field & V,
bool doV,
int & input_file_counter )
static

Definition at line 384 of file readfields.h.

Here is the call graph for this function:

◆ readNextTimestep() [2/2]

template<class Reader>
bool readNextTimestep ( const std::string & filename_pattern,
double t,
int step,
Field & E0,
Field & E1,
Field & B0,
Field & B1,
Field & V,
bool doV,
int & input_file_counter )

Definition at line 272 of file readfields.h.

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

Variable Documentation

◆ B_field_name

std::string B_field_name
extern

Definition at line 35 of file readfields.cpp.

◆ do_divide_by_rho

bool do_divide_by_rho
extern

◆ E_field_name

std::string E_field_name
extern

Definition at line 36 of file readfields.cpp.

◆ V_field_name

std::string V_field_name
extern