NAMD
Main Page
Namespaces
Classes
Files
File List
File Members
DataStream.C
Go to the documentation of this file.
1
7
/*
8
Defines a new stream: dout, for data logs.
9
*/
10
11
#include "
DataStream.h
"
12
#include "
CollectionMgr.h
"
13
#include "
Vector.h
"
14
#include "
Tensor.h
"
15
#include <stdio.h>
16
17
/* output using CkPrintf() (end by inform) */
18
void
datastream::endd
() {
19
*
this
<< std::ends;
20
std::string datastr = str();
21
CollectionMgr::Object
()->
sendDataStream
(datastr.c_str());
22
str(
""
);
23
}
24
25
datastream
&
operator<<
(
datastream
& strm,
const
Vector
&v1) {
26
strm << v1.
x
<<
" "
<< v1.
y
<<
" "
<< v1.
z
;
27
return
strm;
28
}
29
30
datastream
&
operator<<
(
datastream
& strm,
const
Tensor
&t1) {
31
strm << t1.
xx
<<
" "
<< t1.
xy
<<
" "
<< t1.
xz
<<
" "
32
<< t1.
yx
<<
" "
<< t1.
yy
<<
" "
<< t1.
yz
<<
" "
33
<< t1.
zx
<<
" "
<< t1.
zy
<<
" "
<< t1.
zz
;
34
return
strm;
35
}
36
37
datastream
dout
;
38
CollectionMgr::Object
static CollectionMgr * Object()
Definition:
CollectionMgr.h:30
Tensor::zy
BigReal zy
Definition:
Tensor.h:19
datastream::endd
void endd()
Definition:
DataStream.C:18
Tensor::xz
BigReal xz
Definition:
Tensor.h:17
dout
datastream dout
Definition:
DataStream.C:37
Vector
Definition:
Vector.h:64
Vector::z
BigReal z
Definition:
Vector.h:66
DataStream.h
Tensor::yz
BigReal yz
Definition:
Tensor.h:18
operator<<
datastream & operator<<(datastream &strm, const Vector &v1)
Definition:
DataStream.C:25
Tensor.h
Tensor::yx
BigReal yx
Definition:
Tensor.h:18
CollectionMgr.h
Vector::x
BigReal x
Definition:
Vector.h:66
Tensor::xx
BigReal xx
Definition:
Tensor.h:17
Vector.h
Tensor::zz
BigReal zz
Definition:
Tensor.h:19
Tensor
Definition:
Tensor.h:15
Tensor::xy
BigReal xy
Definition:
Tensor.h:17
Vector::y
BigReal y
Definition:
Vector.h:66
Tensor::yy
BigReal yy
Definition:
Tensor.h:18
datastream
Definition:
DataStream.h:16
Tensor::zx
BigReal zx
Definition:
Tensor.h:19
CollectionMgr::sendDataStream
void sendDataStream(const char *)
Definition:
CollectionMgr.C:308
Generated by
1.8.5