Patch: Add Comments to TestBasicRelations.cpp
Jeffrey Oldham
oldham at codesourcery.com
Fri Oct 12 02:16:29 UTC 2001
2001-10-11 Jeffrey D. Oldham <oldham at codesourcery.com>
* TestBasicRelations.cpp (main): Add comments explaining field's
meanings.
Tested on sequential Linux using gcc3.1 by compiling Pooma library and field relations tests
Approved by Stephen Smith
Applied to mainline
Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
Index: TestBasicRelations.cpp
===================================================================
RCS file: /home/pooma/Repository/r2/src/Field/tests/TestBasicRelations.cpp,v
retrieving revision 1.1
diff -c -p -r1.1 TestBasicRelations.cpp
*** TestBasicRelations.cpp 2001/08/30 01:15:18 1.1
--- TestBasicRelations.cpp 2001/10/11 23:54:32
*************** int main(int argc, char *argv[])
*** 79,90 ****
--- 79,97 ----
Centering<2> cell = canonicalCentering<2>(CellType, Continuous);
+ // total energy
Field_t E(cell, layout, Vector<2>(0.0), Vector<2>(1.0, 2.0));
+ // kinetic energy
Field_t K(cell, layout, Vector<2>(0.0), Vector<2>(1.0, 2.0));
+ // potential energy
Field_t U(cell, layout, Vector<2>(0.0), Vector<2>(1.0, 2.0));
+ // velocity
Field_t v(cell, layout, Vector<2>(0.0), Vector<2>(1.0, 2.0));
+ // momentum
Field_t p(cell, layout, Vector<2>(0.0), Vector<2>(1.0, 2.0));
+ // mass
Field_t m(cell, layout, Vector<2>(0.0), Vector<2>(1.0, 2.0));
+ // height
Field_t h(cell, layout, Vector<2>(0.0), Vector<2>(1.0, 2.0));
p = 2.0;
More information about the pooma-dev
mailing list