Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F69120757
dfpm_program.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jun 30, 08:27
Size
1 KB
Mime Type
text/x-c++
Expires
Tue, Jul 2, 08:27 (2 d)
Engine
blob
Format
Raw Data
Handle
18672018
Attached To
rSPECMICP SpecMiCP / ReactMiCP
dfpm_program.hpp
View Options
#ifndef SPECMICP_DFPMSOLVER_DFPMPROGRAM_HPP
#define SPECMICP_DFPMSOLVER_DFPMPROGRAM_HPP
#include "common.hpp"
namespace
specmicp
{
namespace
dfpmsolver
{
//! \brief Base class for a program
template
<
class
Derived
>
class
DFPMProgram
{
public
:
//! \brief Return a pointer to the true object
Derived
*
derived
()
{
static_cast
<
Derived
*>
(
this
);}
//! \brief Return the number of equations
index_t
get_neq
()
const
{
return
derived
()
->
get_neq
();}
//! \brief Return the number of degrees of freedom per node
index_t
get_ndf
()
const
{
return
derived
()
->
get_ndf
();}
//! \brief Return the total number of degrees of freedom
index_t
get_tot_ndf
()
const
{
return
derived
()
->
get_tot_ndf
();}
//! \brief Return the id of the equation corresponding to the degree of freedom 'id_dof'
//!
//! Return 'no_equation' if no equation exist
index_t
id_equation
(
index_t
id_dof
)
const
{
return
derived
()
->
id_equation
(
id_dof
);}
};
}
// end namespace dfpmsolver
}
// end namespace specmicp
#endif
// SPECMICP_DFPMSOLVER_DFPMPROGRAM_HPP
Event Timeline
Log In to Comment