[ET Trac] [Einstein Toolkit] #646: PITTNullCode/NullNews does not build on BlueGene/P
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Sun Oct 23 12:16:09 CDT 2011
#646: PITTNullCode/NullNews does not build on BlueGene/P
-----------------------------------+----------------------------------------
Reporter: eschnett | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: EinsteinToolkit thorn | Version:
Keywords: |
-----------------------------------+----------------------------------------
PITTNullCode/NullNews does not build on BlueGene/P; the C++ STL reports an
error. The reason seems to be that NULL is interpreted as integer constant
instead of a pointer. An explicit case solves this problem there:
{{{
Index: src/set_pointers.h
===================================================================
--- src/set_pointers.h (revision 3)
+++ src/set_pointers.h (working copy)
@@ -1,9 +1,9 @@
// define pointer array for past timelevels!
- vector<CCTK_REAL*> uBondiP(max_timelevels, NULL);
- vector<CCTK_COMPLEX*> Psi4P(max_timelevels, NULL);
- vector<CCTK_COMPLEX*> NewsP(max_timelevels, NULL);
- vector<CCTK_COMPLEX*> NewsBP(max_timelevels, NULL);
+ vector<CCTK_REAL*> uBondiP(max_timelevels, (CCTK_REAL*)NULL);
+ vector<CCTK_COMPLEX*> Psi4P(max_timelevels, (CCTK_COMPLEX*)NULL);
+ vector<CCTK_COMPLEX*> NewsP(max_timelevels, (CCTK_COMPLEX*)NULL);
+ vector<CCTK_COMPLEX*> NewsBP(max_timelevels, (CCTK_COMPLEX*)NULL);
// Get current timelevel...
// We assume here that the two vars uBondi[0] amd uBondi[1] are right
next to each
}}}
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/646>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list