Sorry, ex148.c should be taken off. <div>The examples of using petsc/FFTW interfaces are</div><div>real precision: ex142.c, ex144, ex158</div><div>complex precision: ex112, ex143, ex145</div><div>(see petsc-dev/src/mat/examples/tests/makefile).</div>
<div><br></div><div>I'll clean it.</div><div><br></div><div>Hong<br><br><div class="gmail_quote">On Tue, Jul 10, 2012 at 12:50 PM, Thomas Hisch <span dir="ltr"><<a href="mailto:t.hisch@gmail.com" target="_blank">t.hisch@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Jul 10, 2012 at 7:06 PM, Jed Brown <<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>> wrote:<br>

> On Tue, Jul 10, 2012 at 12:04 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br>
>><br>
>> On Tue, Jul 10, 2012 at 11:59 AM, Thomas Hisch <<a href="mailto:t.hisch@gmail.com">t.hisch@gmail.com</a>> wrote:<br>
>>><br>
>>> Thx for the hint.<br>
>>><br>
>>> Should PETSc-dev in principle work with gcc-4.7, because I get the<br>
>>> following error while building petsc:<br>
>><br>
>><br>
>> Jed is fixing that now. C++ compilers are extraordinarily dumb, and cannot<br>
>> cast<br>
>> a 'volatile std::complex' to 'std::complex'. Should be ready soon.<br>
><br>
><br>
> <a href="http://petsc.cs.iit.edu/petsc/petsc-dev/rev/664ec55a8ab3" target="_blank">http://petsc.cs.iit.edu/petsc/petsc-dev/rev/664ec55a8ab3</a><br>
<br>
</div>Thx this fixed the compilation error.<br>
<br>
However, compilation of the ex148 example in src/mat/examples/tests/<br>
still failes! Maybe I did something wrong. diff shows no differenece<br>
between ex148.c from petsc-dev and petsc-3.3-p1. I tried to compile<br>
ex148 by typing 'make ex148' in src/mat/examples/tests/  - is this the<br>
correct way ?<br>
<br>
Again, here is the error message:<br>
<div class="im"><br>
mpicxx -o ex148.o -c -Wall -Wwrite-strings -Wno-strict-aliasing<br>
-Wno-unknown-pragmas -O3 -fPIC<br>
</div>-I/home/thomas/local/src/petsc-dev/include<br>
-I/home/thomas/local/src/petsc-dev/arch-linux2-cxx-release/include<br>
<div class="im">-I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi<br>
-D__INSDIR__=src/mat/examples/tests/ ex148.c<br>
ex148.c: In function ‘PetscInt main(PetscInt, char**)’:<br>
ex148.c:45:37: error: ‘InputTransformFFT’ was not declared in this scope<br>
ex148.c:54:39: error: ‘OutputTransformFFT’ was not declared in this scope<br>
make: [ex148.o] Error 1 (ignored)<br>
</div>mpicxx -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas<br>
-O3   -o ex148 ex148.o<br>
<div class="im">-Wl,-rpath,/home/thomas/local/src/petsc-dev/arch-linux2-cxx-release/lib<br>
-L/home/thomas/local/src/petsc-dev/arch-linux2-cxx-release/lib<br>
-lpetsc -lX11 -Wl,-rpath,/home/thomas/local/src/petsc-dev/arch-linux2-cxx-release/lib<br>
-lfftw3_mpi -lfftw3 -lpthread<br>
-Wl,-rpath,/opt/intel/composer_xe_2011_sp1.11.339/mkl/lib/intel64<br>
-L/opt/intel/composer_xe_2011_sp1.11.339/mkl/lib/intel64 -llapack<br>
-lblas -Wl,-rpath,/usr/lib/openmpi/lib -L/usr/lib/openmpi/lib<br>
-Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/4.7<br>
-L/usr/lib/gcc/x86_64-linux-gnu/4.7<br>
-Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu<br>
-Wl,-rpath,/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu<br>
-Wl,-rpath,/opt/intel/composer_xe_2011_sp1.11.339/compiler/lib/intel64<br>
-L/opt/intel/composer_xe_2011_sp1.11.339/compiler/lib/intel64<br>
-Wl,-rpath,/opt/intel/composer_xe_2011_sp1.10.319/compiler/lib/intel64<br>
-L/opt/intel/composer_xe_2011_sp1.10.319/compiler/lib/intel64<br>
-Wl,-rpath,/opt/intel/composer_xe_2011_sp1.10.319/ipp/lib/intel64<br>
-L/opt/intel/composer_xe_2011_sp1.10.319/ipp/lib/intel64<br>
-Wl,-rpath,/opt/intel/composer_xe_2011_sp1.10.319/mkl/lib/intel64<br>
-L/opt/intel/composer_xe_2011_sp1.10.319/mkl/lib/intel64<br>
-Wl,-rpath,/opt/intel/composer_xe_2011_sp1.10.319/tbb/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21<br>
-L/opt/intel/composer_xe_2011_sp1.10.319/tbb/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21<br>
-lmpi_f90 -lmpi_f77 -lgfortran -lm -lgfortran -lm -lgfortran -lm -lm<br>
-lquadmath -lm -lmpi_cxx -lstdc++ -ldl -lmpi -lopen-rte -lopen-pal<br>
-lnsl -lutil -lgcc_s -lpthread -ldl<br>
</div>g++: error: ex148.o: No such file or directory<br>
make: [ex148] Error 1 (ignored)<br>
/bin/rm -f ex148.o<br>
<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888">Thomas<br>
</font></span></blockquote></div><br></div>