[PATCH] fix CanonicalCentering missing pre-instantiation

Richard Guenther rguenth at tat.physik.uni-tuebingen.de
Tue Nov 11 13:10:36 UTC 2003


Hi!

Intel icpc 8.0 moans about missing canonical centering constructor during
linking. In fact it is correct, that it is not instantiated explicitly.
So I think the following patch is correct.

Tested with Intel icpc 8.0 on ia32 for the Field/Centerings test.

Ok?

Richard.


===== FieldCentering.cmpl.cpp 1.5 vs edited =====
--- 1.5/r2/src/Field/FieldCentering.cmpl.cpp	Fri Jan 24 10:35:52 2003
+++ edited/FieldCentering.cmpl.cpp	Tue Nov 11 14:05:40 2003
@@ -347,6 +347,13 @@
 }


+// Pre-instantiate canonical centerings
+
+template class CanonicalCentering<1>;
+template class CanonicalCentering<2>;
+template class CanonicalCentering<3>;
+
+
 // ACL:rcsinfo
 // ----------------------------------------------------------------------
 // $RCSfile: FieldCentering.cmpl.cpp,v $   $Author: pooma $




More information about the pooma-dev mailing list