← Back to team overview

dolfin team mailing list archive

Re: [Question #158032]: Saving tensor to file

 


On 18/05/11 17:30, Bob Myhill wrote:
> Question #158032 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/158032
> 
>     Status: Answered => Open
> 
> Bob Myhill is still having a problem:
> Hi Johan,
> 
> Yes, I have. The line
>>>> efile_pvd << project(sym(grad(u1)),TensorFunctionSpace(mesh,"CG",1))
> produces the same malloc() memory corruption errors.
>


Check that the projection works, e.g.

  eps_proj = project(sym(grad(u1)),TensorFunctionSpace(mesh,"CG",1))

and then try to output it

  efile_pvd << eps_proj

When it breaks, register a bug and post the simplest possible complete
code that reproduces the error.

Garth



> Bob
> 


Follow ups

References