[pooma-dev] Patch to NewField/PrintField.h
Jeffrey Oldham
oldham at codesourcery.com
Tue Oct 16 22:54:06 UTC 2001
On Tue, Oct 16, 2001 at 04:13:40PM -0600, Dave Nystrom wrote:
> Below is a copy of a patched version of NewField/PrintField.h from the Blanca
> branch. Could someone add the changes to the Blanca branch of Pooma2. It
> adds a couple of update and blockAndEvaluate calls necessary for running in
> parallel.
Scott, would you please verify my use of a.applyRelations() rather
than a.update()?
OK to commit this patch?
2001-10-16 Jeffrey D. Oldham <oldham at codesourcery.com>
These changes were suggested by Dave Nystrom and John Hall's
use of 'blanca-2001Oct01'.
* PrintField.h (PerformPrintField<S,A,1>::print): Ensure the field
is up-to-date before printing.
(PerformPrintField<S,A,Dim>::print): Likewise.
Tested on sequential Linux using gcc3.1 by running src/Field/tests/FieldTour[123]
Approved by ???you???
Applied to mainline
Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
Index: PrintField.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Field/PrintField.h,v
retrieving revision 1.3
diff -c -p -r1.3 PrintField.h
*** PrintField.h 2001/08/30 01:15:07 1.3
--- PrintField.h 2001/10/16 22:54:24
*************** PerformPrintField<S,A,1>::print(const Pr
*** 377,382 ****
--- 377,387 ----
CTAssert(A::dimensions == 1);
+ // Output should update the field before printing.
+
+ a.applyRelations();
+ Pooma::blockAndEvaluate();
+
// determine the domain and domain-iterator type in the given field
typedef typename A::Domain_t Domain_t;
*************** PerformPrintField<S,A,Dim>::print(const
*** 462,467 ****
--- 467,477 ----
// make sure this is the right function
CTAssert(A::dimensions == Dim && Dim > 1);
+
+ // Output should update the field before printing.
+
+ a.applyRelations();
+ Pooma::blockAndEvaluate();
// determine the domain and domain-iterator type in the given field
More information about the pooma-dev
mailing list