Hello all,
It seems that using block_write() and block_read would be easier to store
data and reuse them
as initial conditions on identical geometry and mesh compared to using
boost:serialization. However,
I have some issues and quires (I do not use parallelization in my code). I
shall be thankful if someone
clarifies the following things:
(i) Suppose I want to store my 'Solution' vector to the zeroth block of a
BlockVector 'solution_save'.
For that I have used the following command (in blue) and I get error (in
red). It seems that the first
line is not the correct way to store vectors in the block. Can you please
let me know the correct command?
solution_save.block(0) = solution;
std::ofstream output_text("data.txt");
solution_save.block_write(output_text);
/home/abasak/Desktop/Anup/dealiicodes/myprogs/junks/step-26/step-26.cc:338:28:
error: no match for ‘operator=’ (operand types are ‘const BlockType {aka
const dealii::Vector<double>}’ and ‘const dealii::Vector<double>’)
solution_save.block(0) = solution;
2. I am solving mechanics problem. So I need to store the stress and strain
tensors at each node as well. I was wondering if it is possible to store
the tensors somehow. One possibility could be, I think, to store all nine
(here six) components in different blocks and reunite them while reading.
But is there a smarter way to store tensors?
3. Also, I must save the triangulation and all nodal and element
information. How to go about it?
Many thanks,
Regards,
Anup.
On Monday, November 7, 2016 at 7:31:08 PM UTC-6, Wolfgang Bangerth wrote:
>
> On 11/07/2016 06:11 PM, Anup Basak wrote:
> >
> > It seems that to work with load() and save() one needs to work with
> boost
> > packages.
> > I was wondering if it is already inbuilt in dealii packages or I need to
> > install boost and build it
> > separately.
>
> It's all there already, ready for you to use :-)
> W.
>
> --
> ------------------------------------------------------------------------
> Wolfgang Bangerth email: [email protected]
> <javascript:>
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.