Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
partition Class Reference

#include <partition.h>

Inheritance diagram for partition:
Collaboration diagram for partition:

Public Member Functions

 partition ()
 
virtual ~partition ()
 
std::vector< int > get_layout ()
 
virtual void parse_layout ()
 
virtual bool parse_data (int num_dep_vars, int num_vars, std::vector< std::vector< int > > rFieldMappings, index_order rIndexOrder, std::vector< adj_map > conv_factor, std::vector< adj_map > norm_val)
 
string get_error ()
 
string get_status ()
 
int get_num_points ()
 
pointsget_points ()
 
pnt get_point (int n)
 

Protected Member Functions

long double get_adj (std::vector< adj_map > adj, int var)
 
int GetFieldMapping (std::vector< std::vector< int > > rFieldMapping, int rSearchField)
 

Protected Attributes

std::vector< int > p_layout
 
string error
 
string status
 
pointsdata_pts
 
bool data_pts_set
 

Detailed Description

Definition at line 19 of file partition.h.

Constructor & Destructor Documentation

partition ( )

Definition at line 7 of file partition.cpp.

References data_pts_set.

7  {
8  data_pts_set = false;
9  return;
10 }
bool data_pts_set
Definition: partition.h:54
~partition ( )
virtual

Definition at line 12 of file partition.cpp.

References data_pts, and data_pts_set.

12  {
13  if(data_pts_set)
14  delete data_pts;
15 }
bool data_pts_set
Definition: partition.h:54
points * data_pts
Definition: partition.h:53

Member Function Documentation

long double get_adj ( std::vector< adj_map adj,
int  var 
)
protected

Definition at line 61 of file partition.cpp.

References i.

Referenced by tpz_ordered::parse_data(), and tpz_fequad::parse_data().

61  {
62  for(int i=0; i<adj.size(); i++){
63  if(adj[i].variable == var)
64  return adj[i].factor;
65  }
66 
67  return 1.0;
68 }
blockLoc i
Definition: read.cpp:79

Here is the caller graph for this function:

string get_error ( )

Definition at line 35 of file partition.cpp.

References error.

35  {
36  string temp = error;
37  error = "";
38 
39  return temp;
40 }
string error
Definition: partition.h:49
std::vector< int > get_layout ( )

Definition at line 17 of file partition.cpp.

References p_layout, and parse_layout().

Referenced by datafile::partition_layout().

17  {
18  if(p_layout.size() == 0){
19  parse_layout();
20  }
21 
22  return p_layout;
23 }
std::vector< int > p_layout
Definition: partition.h:46
virtual void parse_layout()
Definition: partition.cpp:25

Here is the call graph for this function:

Here is the caller graph for this function:

int get_num_points ( )

Definition at line 49 of file partition.cpp.

References data_pts, and points::get_num_points().

Referenced by datafile::get_num_points(), and datafile::get_point().

49  {
50  return data_pts->get_num_points();
51 }
points * data_pts
Definition: partition.h:53
int get_num_points()
Definition: points.cpp:117

Here is the call graph for this function:

Here is the caller graph for this function:

pnt get_point ( int  n)

Definition at line 57 of file partition.cpp.

References data_pts, and points::get_point().

Referenced by tpz_ordered::build_point_index(), and datafile::get_point().

57  {
58  return data_pts->get_point(n);
59 }
pnt get_point(int n)
Definition: points.cpp:183
points * data_pts
Definition: partition.h:53
const NT & n

Here is the call graph for this function:

Here is the caller graph for this function:

points * get_points ( )

Definition at line 53 of file partition.cpp.

References data_pts.

Referenced by datafile::get_points().

53  {
54  return this->data_pts;
55 }
points * data_pts
Definition: partition.h:53

Here is the caller graph for this function:

string get_status ( )

Definition at line 42 of file partition.cpp.

References status.

42  {
43  string temp = status;
44  status = "";
45 
46  return temp;
47 }
string status
Definition: partition.h:50
int GetFieldMapping ( std::vector< std::vector< int > >  rFieldMapping,
int  rSearchField 
)
protected

Definition at line 70 of file partition.cpp.

Referenced by tpz_ordered::build_point_index(), tpz_ordered::parse_data(), and tpz_fequad::parse_data().

70  {
71 
72  for(int map_num = 0; map_num < rFieldMappings.size(); map_num++){
73 
74  if(rFieldMappings[map_num][0] == rSearchField)
75  return rFieldMappings[map_num][1];
76  }
77 
78  return rSearchField;
79 }

Here is the caller graph for this function:

bool parse_data ( int  num_dep_vars,
int  num_vars,
std::vector< std::vector< int > >  rFieldMappings,
index_order  rIndexOrder,
std::vector< adj_map conv_factor,
std::vector< adj_map norm_val 
)
virtual

Reimplemented in tpz_fequad, and tpz_ordered.

Definition at line 29 of file partition.cpp.

31  {
32  return false;
33 }
void parse_layout ( )
virtual

Reimplemented in tpz_fequad, and tpz_ordered.

Definition at line 25 of file partition.cpp.

Referenced by get_layout(), and tecplot_data::parse().

25  {
26  return;
27 }

Here is the caller graph for this function:

Member Data Documentation

bool data_pts_set
protected
string error
protected

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