www.mooseframework.org
Classes | Functions
SymmTensor.h File Reference

Go to the source code of this file.

Classes

class  SymmTensor
 

Functions

template<>
void dataStore (std::ostream &stream, const SymmTensor &v, void *)
 
template<>
void dataLoad (std::istream &stream, SymmTensor &v, void *)
 

Function Documentation

template<>
void dataLoad ( std::istream &  stream,
SymmTensor v,
void *   
)

Definition at line 52 of file SymmTensor.C.

53 {
54  Real r = 0.;
55  stream.read((char *)&r, sizeof(r));
56  v.xx(r);
57  stream.read((char *)&r, sizeof(r));
58  v.yy(r);
59  stream.read((char *)&r, sizeof(r));
60  v.zz(r);
61  stream.read((char *)&r, sizeof(r));
62  v.xy(r);
63  stream.read((char *)&r, sizeof(r));
64  v.yz(r);
65  stream.read((char *)&r, sizeof(r));
66  v.zx(r);
67 }
Real yy() const
Definition: SymmTensor.h:130
Real xx() const
Definition: SymmTensor.h:129
Real zz() const
Definition: SymmTensor.h:131
Real xy() const
Definition: SymmTensor.h:132
Real yz() const
Definition: SymmTensor.h:133
Real zx() const
Definition: SymmTensor.h:134
template<>
void dataStore ( std::ostream &  stream,
const SymmTensor v,
void *   
)

Definition at line 33 of file SymmTensor.C.

34 {
35  Real r;
36  r = v.xx();
37  stream.write((const char *)&r, sizeof(r));
38  r = v.yy();
39  stream.write((const char *)&r, sizeof(r));
40  r = v.zz();
41  stream.write((const char *)&r, sizeof(r));
42  r = v.xy();
43  stream.write((const char *)&r, sizeof(r));
44  r = v.yz();
45  stream.write((const char *)&r, sizeof(r));
46  r = v.zx();
47  stream.write((const char *)&r, sizeof(r));
48 }
Real yy() const
Definition: SymmTensor.h:130
Real xx() const
Definition: SymmTensor.h:129
Real zz() const
Definition: SymmTensor.h:131
Real xy() const
Definition: SymmTensor.h:132
Real yz() const
Definition: SymmTensor.h:133
Real zx() const
Definition: SymmTensor.h:134