![]() |
Blitz Support : |
From: Peter Bienstman (Peter.Bienstman_at_[hidden])
Date: 2004-12-21 10:10:45
This time with 3D complex vector fields:
#include <blitz/array.h>
#include <blitz/array/stencil-et.h>
using namespace blitz;
int main()
{
Array< TinyVector< complex<float> ,3>, 3> A;
Array< TinyVector< complex<float> ,3>, 3> B;
B = curl(A);
}
This is the compiler output:
if g++ -DHAVE_CONFIG_H -I. -I.. -I.. -MT stencilet.o -MD -MP -MF
".deps/stencilet.Tpo" -c -o stencilet.o stencilet.cpp; \
then mv -f ".deps/stencilet.Tpo" ".deps/stencilet.Po"; else rm -f
".deps/stencilet.Tpo"; exit 1; fi
../blitz/array/stencilops.h: In function `typename
blitz::multicomponent_traits<typename T::T_numtype>::T_element
blitz::central12(T&, int, int) [with T =
blitz::Array<blitz::TinyVector<std::complex<float>, 3>, 3>]':
../blitz/array/stencilops.h:822: instantiated from `typename T::T_numtype
blitz::curl(T&) [with T = blitz::Array<blitz::TinyVector<std::complex<float>,
3>, 3>]'
stencilet.cpp:11: instantiated from here
../blitz/array/stencilops.h:149: error: `shift' undeclared (first use this
function)
../blitz/array/stencilops.h:149: error: (Each undeclared identifier is
reported
only once for each function it appears in.)
make: *** [stencilet.o] Error 1
Thanks!
Peter
-- ------------------------------------------------ Peter Bienstman Ghent University, Dept. of Information Technology Sint-Pietersnieuwstraat 41, B-9000 Gent, Belgium tel: +32 9 264 34 45, fax: +32 9 264 35 93 WWW: http://photonics.intec.UGent.be email: Peter.Bienstman_at_[hidden] ------------------------------------------------