Including "libmesh/node.h" got rid of the error when using make example-opt
for my modified example. I was wondering what I do to view the output of
the C program though. I would think I should run example-opt. When I did
this I got the output:
Usage: /opt/libmesh-1.0.0-rc1/examples/eigenproblems/
eigenproblems_ex2/.libs/lt-example-opt -n <number of eigen values>
Stack frames: 5
0: libMesh::print_trace(std::ostream&)
1: libMesh::MacroFunctions::report_error(char const*, int, char const*,
char const*)
2: 
/opt/libmesh-1.0.0-rc1/examples/eigenproblems/eigenproblems_ex2/.libs/lt-example-opt()
[0x40c17e]
3: __libc_start_main
4: 
/opt/libmesh-1.0.0-rc1/examples/eigenproblems/eigenproblems_ex2/.libs/lt-example-opt()
[0x40c29d]
[0] eigenproblems_ex2.C, line 45, compiled Aug 17 2016 at 15:52:06
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0

Harry Pearce


On Wed, Aug 17, 2016 at 3:47 PM, John Peterson <jwpeter...@gmail.com> wrote:

>
>
> On Wed, Aug 17, 2016 at 4:05 PM, Harry Pearce <harroontheg...@gmail.com>
> wrote:
>
>> I updated the .C program based on the up to date examples. The only error
>> I
>> get now is:
>>   CXX      example_opt-eigenproblems_ex2.o
>> eigenproblems_ex2.C: In function ‘int main(int, char**)’:
>> eigenproblems_ex2.C:89:32: error: invalid initialization of reference of
>> type ‘const libMesh::Point&’ from expression of type ‘libMesh::Node’
>>              const Point& p = **node_it;
>>                                 ^
>> This looks like a C++ error to me but supposedly the code used to work.
>> Was
>> libmesh::Point a class in the old libMesh (libMesh 0.7.3.3)?
>>
>
> Did you #include "libmesh/node.h"?
>
> --
> John
>
------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to