<div dir="ltr">On Tue, Aug 13, 2013 at 11:40 PM, neiosun <span dir="ltr"><<a href="mailto:neiosun@gmail.com" target="_blank">neiosun@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><div>Hi, <br><br></div><div>I just began to use petfmm.  When I tried the example sequence_test, there is a problem about metis.h. After I added this file to petfmm folder,  now it works.   <br>

<br>However, when I tried different example like  
gravityAnomaly, there is always something wrong.  <br><br></div>Below is my configuration for petsc and the error code for gravityanomaly.<br></div><div><br>====<br></div>used PETSC3.2.p7, with the configuration  <br>
./configure --with-cc=gcc --with-fc=gfortran --download-f-blas-lapack 
--download-mpich --with-clanguage=cxx --download-boost --with-sieve 
--download-parmetis<br><br>======<br></div></div></div>dong:~/petfmm/src/examples$ ./make.py --example=gravityAnomaly<br></div></blockquote><div><br></div><div>The kernel is Laplace, --kernel=Laplace, not BiotSavart.</div>
<div><br></div><div>  Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Building gravityAnomaly for kernel BiotSavart and evaluator Iteration in 2 dimensions in serial<br>

Traceback (most recent call last):<br>  File "./make.py", line 292, in <module><br>    Maker().build()<br>  File "./make.py", line 288, in build<br>    self.executeShellCommand('make')<br>

  File "/home/dong/petsc-3.2-p7/config/BuildSystem/script.py", line 256, in executeShellCommand<br>    checkCommand(command, status, output, error)<br>  File "/home/dong/petsc-3.2-p7/config/BuildSystem/script.py", line 212, in defaultCheckCommand<br>

    if status: raise RuntimeError('Could not execute "%s":\n%s' % (command,output+error))<br>RuntimeError: Could not execute "make":<br>/home/dong/petsc-3.2-p7/linux-gnu-c-debug/bin/mpicxx -o gravityAnomaly.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g -I.. -DDIMENSION=2 -DNUM_TERMS=17 -DNUM_COEFFICIENTS=17 -DNEIGHBOR_RADIUS=1 -I/home/dong/petsc-3.2-p7/include -I/home/dong/petsc-3.2-p7/linux-gnu-c-debug/include -I/home/dong/petsc-3.2-p7/include/sieve -D__INSDIR__= gravityAnomaly.cxx<br>

/home/dong/petsc-3.2-p7/linux-gnu-c-debug/bin/mpicxx -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g -I.. -DDIMENSION=2 -DNUM_TERMS=17 -DNUM_COEFFICIENTS=17 -DNEIGHBOR_RADIUS=1  -o gravityAnomaly gravityAnomaly.o -L/home/dong/petsc-3.2-p7/linux-gnu-c-debug/lib  -lpetsc -Wl,-rpath,/home/dong/petsc-3.2-p7/linux-gnu-c-debug/lib -lparmetis -lmetis -lpthread -lflapack -lfblas -lm -L/usr/lib/gcc/x86_64-linux-gnu/4.6 -L/usr/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu -ldl -lmpich -lopa -lmpl -lrt -lpthread -lgcc_s -lmpichf90 -lgfortran -lm -lgfortran -lm -lquadmath -lm -lmpichcxx -lstdc++ -ldl -lmpich -lopa -lmpl -lrt -lpthread -lgcc_s -ldl  <br>

gravityAnomaly.cxx: In function ‘int main(int, char**)’:<br>gravityAnomaly.cxx:265:47: error: cannot convert ‘Field<PETSc::Point<2>, std::complex<double>, double>::potential_type {aka std::complex<double>}’ to ‘PetscScalar {aka double}’ in assignment<br>

gravityAnomaly.cxx:266:31: error: invalid types ‘Field<PETSc::Point<2>, std::complex<double>, double>::field_type {aka double}[int]’ for array subscript<br>gravityAnomaly.cxx:267:31: error: invalid types ‘Field<PETSc::Point<2>, std::complex<double>, double>::field_type {aka double}[int]’ for array subscript<br>

gravityAnomaly.cxx:268:31: error: invalid types ‘Field<PETSc::Point<2>, std::complex<double>, double>::field_type {aka double}[int]’ for array subscript<br>gravityAnomaly.cxx:284:65: error: cannot convert ‘Blob<PETSc::Point<2>, double, std::complex<double>, double>::potential_type {aka std::complex<double>}’ to ‘PetscScalar {aka double}’ in assignment<br>

gravityAnomaly.cxx:285:40: error: invalid types ‘Blob<PETSc::Point<2>, double, std::complex<double>, double>::field_type {aka double}[int]’ for array subscript<br>gravityAnomaly.cxx:286:40: error: invalid types ‘Blob<PETSc::Point<2>, double, std::complex<double>, double>::field_type {aka double}[int]’ for array subscript<br>

gravityAnomaly.cxx:287:40: error: invalid types ‘Blob<PETSc::Point<2>, double, std::complex<double>, double>::field_type {aka double}[int]’ for array subscript<br>make: [gravityAnomaly.o] Error 1 (ignored)<br>

g++: error: gravityAnomaly.o: No such file or directory<br>make: *** [gravityAnomaly] Error 1<br>========================================================<br><br><div>What should I do with this error? <br></div><div> <br>
<br>
</div>Yours,<br><br>Dong <br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>