Rheolef
7.1
an efficient C++ finite element environment
iofem.cc
Go to the documentation of this file.
1
//
22
// Input/Output option management
23
// for finite element specific objects
24
//
25
// author: Pierre.Saramito@imag.fr
26
//
27
// date: 6 may 2001
28
//
29
# include "rheolef/iofem.h"
30
namespace
rheolef
{
31
using namespace
std;
32
33
# define IO_RHEO_SCALAR(t,a) iorheobase_io_scalar_body_macro(iofem,t,a)
34
IO_RHEO_SCALAR
(
field_sequential
, topography)
35
IO_RHEO_SCALAR
(
point
, origin)
36
IO_RHEO_SCALAR
(
point
,
normal
)
37
IO_RHEO_SCALAR
(point_basic<size_t>, resolution)
38
# undef IO_RHEO_SCALAR
39
40
// ---------------------------------------------------------------------
41
// constructor and destructor, copy and assignement
42
// ---------------------------------------------------------------------
43
44
iofem::iofem
()
45
:
46
topography_(),
47
origin_(
point
(numeric_limits<
Float
>::max(),0,0)),
48
normal_(
point
(1,0,0)),
49
resolution_(1024,768)
50
{
51
}
52
iofem::~iofem
()
53
{
54
}
55
// ---------------------------------------------------------------------
56
// trivial memory handler instanciation
57
// ---------------------------------------------------------------------
58
59
// static variable initialization in template class:
60
template
<> list<iofem*> *
iorheobase_memory_handler<iofem>::pointer_list
= 0;
61
62
// class instanciation:
63
template
class
iorheobase_memory_handler<iofem>
;
64
65
iofem
*
66
iofem::get_pointer
(std::ios& s)
67
{
68
return
iorheobase_memory_handler<iofem>::get_pointer
(s);
69
}
70
71
}
// namespace rheolef
rheolef::normal
details::field_expr_v2_nonlinear_terminal_function< details::normal_pseudo_function< Float > > normal()
normal: see the expression page for the full documentation
Definition:
field_expr_terminal.h:439
rheolef::iorheobase_memory_handler::get_pointer
static T * get_pointer(std::ios &io)
Definition:
iorheobase.h:160
rheolef
This file is part of Rheolef.
Definition:
compiler_eigen.h:37
Float
see the Float page for the full documentation
point
see the point page for the full documentation
rheolef::iorheobase_memory_handler
Definition:
iorheobase.h:144
rheolef::field_sequential
field_basic< Float, sequential > field_sequential
Definition:
field.h:421
IO_RHEO_SCALAR
#define IO_RHEO_SCALAR(t, a)
Definition:
iofem.cc:33
rheolef::iofem
Definition:
iofem.h:67
rheolef::iofem::~iofem
~iofem()
Definition:
iofem.cc:52
rheolef::iofem::get_pointer
static iofem * get_pointer(std::ios &s)
Definition:
iofem.cc:66
rheolef::iofem::iofem
iofem()
Definition:
iofem.cc:44