📄 global_discretization_gamma_h_n.h
字号:
#ifndef __GLOBAL_DISCRETIZATION_GAMMA_H_N_H
#define __GLOBAL_DISCRETIZATION_GAMMA_H_N_H
class Gamma_h_i : public Omega_h {
int the_index;
Dynamic_Array<Omega_eh> the_omega_eh_array;
public:
Gamma_h_i(int i, Omega_h &oh); // client program suplied constructor
Dynamic_Array<Omega_eh>& omega_eh_array() { return the_omega_eh_array; }
Omega_eh& operator()(int en); // element selector int element_order(int en) const; int total_element_no() const { return the_omega_eh_array.length(); } // total number of distinct nodes int index() const { return the_index; }
};
class Global_Discretization_Gamma_h_i : public Global_Discretization {
int the_index;
Global_Discretization *type_id;
//Omega_h &the_omega_h; // dimension is n-1 of the global discretization
Gamma_h_i &the_gamma_h_i;
public:
Global_Discretization_Gamma_h_i(int idx, Global_Discretization &gd,
Global_Discretization *id, Gamma_h_i &ghi) :
Global_Discretization(gd), the_index(idx), type_id(id), the_gamma_h_i(ghi) {}
//Omega_h& omega_h() { return the_omega_h; } //Omega_h omega_h() const { return the_omega_h; }
Omega_h& omega_h() { return the_gamma_h_i; } Omega_h omega_h() const { return the_gamma_h_i; }
Gamma_h_i &gamma_h_i() { return the_gamma_h_i; }
Gamma_h_i gamma_h_i() const { return the_gamma_h_i; }
Global_Discretization* type() { return type_id; } Global_Discretization* type() const { return type_id; } // virtual member functions; integrated-information services to Element_Formulation C0 element_coordinate(int en); C0 element_fixed_variable(int en); C0 element_free_variable(int en); C0 element_nodal_force(int en);
int index() const { return the_index; }
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -