On 02/27/2017 12:24 PM, Weixiong Zheng wrote:
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
Weixiong,
Can you run this in a debugger, set the breakpoint at the function suggested
here, and see if you can get a backtrace? Alternatively, can you create a
small, self-contained testcase that shows the problem?
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
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.