Dear all,

Might be a trivial questions to you guys. I get a scalar problem using hp 
class. When I tried to output the results using 

  std::vector<std::string> solution_names;

  solution_names.push_back ("phi");

  

  std::vector<DataComponentInterpretation::DataComponentInterpretation>

  data_component_interpretation(1, 
DataComponentInterpretation::component_is_scalar);

  

  DataOut<dim,hp::DoFHandler<dim> > data_out;

  

  data_out.attach_dof_handler (dof_handler);

  data_out.add_data_vector (scalar_flux,

                            solution_names,

                            DataOut<dim,hp::DoFHandler<dim> 
>::type_dof_data,

                            data_component_interpretation);

  

  data_out.build_patches ();

  std::string name = "solution.vtk";

  std::ofstream output (names.c_str());

  data_out.write_vtk (output);

  std::cout << "see see 3" << std::endl;

I got the following error:

CDLS-DSA(49490,0x70000c0cb000) malloc: *** error for object 0x7f7f87707c98: 
incorrect checksum for freed object - object was probably modified after 
being freed.

*** set a breakpoint in malloc_error_break to debug

CDLS-DSA(49490,0x70000b0bf000) malloc: *** error for object 0x7f7f87606698: 
incorrect checksum for freed object - object was probably modified after 
being freed.

*** set a breakpoint in malloc_error_break to debug

CDLS-DSA(49490,0x70000c4ce000) malloc: *** error for object 0x7f7f8743b958: 
incorrect checksum for freed object - object was probably modified after 
being freed.

*** set a breakpoint in malloc_error_break to debug

CDLS-DSA(49490,0x70000b4c2000) malloc: *** error for object 0x7f7f89000cd8: 
incorrect checksum for freed object - object was probably modified after 
being freed.

*** set a breakpoint in malloc_error_break to debug

make[3]: *** [CMakeFiles/run] Segmentation fault: 11

make[2]: *** [CMakeFiles/run.dir/all] Error 2

make[1]: *** [CMakeFiles/run.dir/rule] Error 2

make: *** [run] Error 2


Any clues about what's wrong?


Thanks in advance,

Weixiong

  

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to