Peano 4
Loading...
Searching...
No Matches
applications::exahype2::swe::parser::TopologyParser Class Reference

#include <TopologyParser.h>

Public Member Functions

 TopologyParser (const char *bathymetry_file_path, const char *displacement_file_path, const char *nc_bathymetry_x_key="x", const char *nc_bathymetry_y_key="y", const char *nc_bathymetry_bathymetry_key="z", const char *nc_displacement_x_key="x", const char *nc_displacement_y_key="y", const char *nc_displacement_displacement_key="z", double i_uq_displacement_origin_x=INFINITY, double i_uq_displacement_origin_y=INFINITY)
 
 TopologyParser (const char *bathymetry_file_path, double width_x, double width_y, const char *nc_bathymetry_x_key="x", const char *nc_bathymetry_y_key="y", const char *nc_bathymetry_bathymetry_key="z")
 
 ~TopologyParser ()
 
void parse_bathymetry_file (const char *bathymetry_file_path)
 
double sample_bathymetry (double x, double y)
 
double get_max_x_bathymetry ()
 
double get_min_x_bathymetry ()
 
double get_max_y_bathymetry ()
 
double get_min_y_bathymetry ()
 
void parse_displacement_file (const char *displacement_file_path)
 
double sample_displacement (double x, double y)
 

Private Attributes

double * bathymetry_ = nullptr
 
double * displacement_ = nullptr
 
size_t x_bathymetry_ = 0
 
size_t y_bathymetry_ = 0
 
size_t x_displacement_ = 0
 
size_t y_displacement_ = 0
 
double l_nX_ = -1
 
double l_nY_ = -1
 
double max_x_bathymetry_ = -1
 
double max_y_bathymetry_ = -1
 
double min_x_bathymetry_ = 1
 
double min_y_bathymetry_ = 1
 
double max_x_displacement_ = -1
 
double max_y_displacement_ = -1
 
double min_x_displacement_ = 1
 
double min_y_displacement_ = 1
 
double uq_displacement_origin_x_ = INFINITY
 
double uq_displacement_origin_y_ = INFINITY
 
const char * nc_bathymetry_x_key_
 
const char * nc_bathymetry_y_key_
 
const char * nc_bathymetry_bathymetry_key_
 
const char * nc_displacement_x_key_
 
const char * nc_displacement_y_key_
 
const char * nc_displacement_displacement_key_
 

Detailed Description

Definition at line 16 of file TopologyParser.h.

Constructor & Destructor Documentation

◆ TopologyParser() [1/2]

applications::exahype2::swe::parser::TopologyParser::TopologyParser ( const char * bathymetry_file_path,
const char * displacement_file_path,
const char * nc_bathymetry_x_key = "x",
const char * nc_bathymetry_y_key = "y",
const char * nc_bathymetry_bathymetry_key = "z",
const char * nc_displacement_x_key = "x",
const char * nc_displacement_y_key = "y",
const char * nc_displacement_displacement_key = "z",
double i_uq_displacement_origin_x = INFINITY,
double i_uq_displacement_origin_y = INFINITY )

Definition at line 5 of file TopologyParser.cpp.

References l_nX_, l_nY_, parse_bathymetry_file(), and parse_displacement_file().

Here is the call graph for this function:

◆ TopologyParser() [2/2]

applications::exahype2::swe::parser::TopologyParser::TopologyParser ( const char * bathymetry_file_path,
double width_x,
double width_y,
const char * nc_bathymetry_x_key = "x",
const char * nc_bathymetry_y_key = "y",
const char * nc_bathymetry_bathymetry_key = "z" )

Definition at line 28 of file TopologyParser.cpp.

References parse_bathymetry_file().

Here is the call graph for this function:

◆ ~TopologyParser()

applications::exahype2::swe::parser::TopologyParser::~TopologyParser ( )

Definition at line 43 of file TopologyParser.cpp.

Member Function Documentation

◆ get_max_x_bathymetry()

double applications::exahype2::swe::parser::TopologyParser::get_max_x_bathymetry ( )

Definition at line 65 of file TopologyParser.h.

References max_x_bathymetry_.

Referenced by applications::exahype2::swe::adjoint::SWEAdjoint::SWEAdjoint().

Here is the caller graph for this function:

◆ get_max_y_bathymetry()

double applications::exahype2::swe::parser::TopologyParser::get_max_y_bathymetry ( )

Definition at line 67 of file TopologyParser.h.

References max_y_bathymetry_.

Referenced by applications::exahype2::swe::adjoint::SWEAdjoint::SWEAdjoint().

Here is the caller graph for this function:

◆ get_min_x_bathymetry()

double applications::exahype2::swe::parser::TopologyParser::get_min_x_bathymetry ( )

Definition at line 66 of file TopologyParser.h.

References min_x_bathymetry_.

Referenced by applications::exahype2::swe::adjoint::SWEAdjoint::SWEAdjoint().

Here is the caller graph for this function:

◆ get_min_y_bathymetry()

double applications::exahype2::swe::parser::TopologyParser::get_min_y_bathymetry ( )

Definition at line 68 of file TopologyParser.h.

References min_y_bathymetry_.

Referenced by applications::exahype2::swe::adjoint::SWEAdjoint::SWEAdjoint().

Here is the caller graph for this function:

◆ parse_bathymetry_file()

void applications::exahype2::swe::parser::TopologyParser::parse_bathymetry_file ( const char * bathymetry_file_path)

◆ parse_displacement_file()

void applications::exahype2::swe::parser::TopologyParser::parse_displacement_file ( const char * displacement_file_path)

◆ sample_bathymetry()

double applications::exahype2::swe::parser::TopologyParser::sample_bathymetry ( double x,
double y )

◆ sample_displacement()

double applications::exahype2::swe::parser::TopologyParser::sample_displacement ( double x,
double y )

Field Documentation

◆ bathymetry_

double* applications::exahype2::swe::parser::TopologyParser::bathymetry_ = nullptr
private

Definition at line 18 of file TopologyParser.h.

◆ displacement_

double* applications::exahype2::swe::parser::TopologyParser::displacement_ = nullptr
private

Definition at line 19 of file TopologyParser.h.

◆ l_nX_

double applications::exahype2::swe::parser::TopologyParser::l_nX_ = -1
private

Definition at line 25 of file TopologyParser.h.

Referenced by TopologyParser().

◆ l_nY_

double applications::exahype2::swe::parser::TopologyParser::l_nY_ = -1
private

Definition at line 26 of file TopologyParser.h.

Referenced by TopologyParser().

◆ max_x_bathymetry_

double applications::exahype2::swe::parser::TopologyParser::max_x_bathymetry_ = -1
private

Definition at line 27 of file TopologyParser.h.

Referenced by get_max_x_bathymetry().

◆ max_x_displacement_

double applications::exahype2::swe::parser::TopologyParser::max_x_displacement_ = -1
private

Definition at line 31 of file TopologyParser.h.

◆ max_y_bathymetry_

double applications::exahype2::swe::parser::TopologyParser::max_y_bathymetry_ = -1
private

Definition at line 28 of file TopologyParser.h.

Referenced by get_max_y_bathymetry().

◆ max_y_displacement_

double applications::exahype2::swe::parser::TopologyParser::max_y_displacement_ = -1
private

Definition at line 32 of file TopologyParser.h.

◆ min_x_bathymetry_

double applications::exahype2::swe::parser::TopologyParser::min_x_bathymetry_ = 1
private

Definition at line 29 of file TopologyParser.h.

Referenced by get_min_x_bathymetry().

◆ min_x_displacement_

double applications::exahype2::swe::parser::TopologyParser::min_x_displacement_ = 1
private

Definition at line 33 of file TopologyParser.h.

◆ min_y_bathymetry_

double applications::exahype2::swe::parser::TopologyParser::min_y_bathymetry_ = 1
private

Definition at line 30 of file TopologyParser.h.

Referenced by get_min_y_bathymetry().

◆ min_y_displacement_

double applications::exahype2::swe::parser::TopologyParser::min_y_displacement_ = 1
private

Definition at line 34 of file TopologyParser.h.

◆ nc_bathymetry_bathymetry_key_

const char* applications::exahype2::swe::parser::TopologyParser::nc_bathymetry_bathymetry_key_
private

Definition at line 40 of file TopologyParser.h.

◆ nc_bathymetry_x_key_

const char* applications::exahype2::swe::parser::TopologyParser::nc_bathymetry_x_key_
private

Definition at line 38 of file TopologyParser.h.

◆ nc_bathymetry_y_key_

const char* applications::exahype2::swe::parser::TopologyParser::nc_bathymetry_y_key_
private

Definition at line 39 of file TopologyParser.h.

◆ nc_displacement_displacement_key_

const char* applications::exahype2::swe::parser::TopologyParser::nc_displacement_displacement_key_
private

Definition at line 44 of file TopologyParser.h.

◆ nc_displacement_x_key_

const char* applications::exahype2::swe::parser::TopologyParser::nc_displacement_x_key_
private

Definition at line 42 of file TopologyParser.h.

◆ nc_displacement_y_key_

const char* applications::exahype2::swe::parser::TopologyParser::nc_displacement_y_key_
private

Definition at line 43 of file TopologyParser.h.

◆ uq_displacement_origin_x_

double applications::exahype2::swe::parser::TopologyParser::uq_displacement_origin_x_ = INFINITY
private

Definition at line 35 of file TopologyParser.h.

◆ uq_displacement_origin_y_

double applications::exahype2::swe::parser::TopologyParser::uq_displacement_origin_y_ = INFINITY
private

Definition at line 36 of file TopologyParser.h.

◆ x_bathymetry_

size_t applications::exahype2::swe::parser::TopologyParser::x_bathymetry_ = 0
private

Definition at line 21 of file TopologyParser.h.

◆ x_displacement_

size_t applications::exahype2::swe::parser::TopologyParser::x_displacement_ = 0
private

Definition at line 23 of file TopologyParser.h.

◆ y_bathymetry_

size_t applications::exahype2::swe::parser::TopologyParser::y_bathymetry_ = 0
private

Definition at line 22 of file TopologyParser.h.

◆ y_displacement_

size_t applications::exahype2::swe::parser::TopologyParser::y_displacement_ = 0
private

Definition at line 24 of file TopologyParser.h.


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