std::bad_alloc at read_vtu

116 views
Skip to first unread message

LY XXXiao

unread,
Dec 23, 2023, 7:57:26 AM12/23/23
to deal.II User Group
Dear Dealii_group,

I encounter a memory problem at reading vtu file when I compile with dealii.9.50 but not with 9.40. 
When I compile with 9.40 (cmake -DDEAL_II_DIR=/data/libs/dealii-9.4.1 .) and 'make run', it will output: " Reading vtu file with cells:260 " (which is the correct output);
When I compile with 9.50 (cmake .)  and 'make run', it will output: "terminate called after throwing an instance of 'std::bad_alloc; what():  std::bad_alloc'"

I am wondering, if it is my mesh file is incorrect or there is some bug hidden in th enew version dealii ? (Attached please find the test script)

Thank you in advance for whoever gives some comments on this :)

Have a brilliant holiday season,
Longying
test_readvtu_dealii.zip

LY XXXiao

unread,
Dec 27, 2023, 8:05:51 AM12/27/23
to deal.II User Group
Hi all,

I think I found the reason. It's because I was using older version of dealii generating the vtu file and therefore can only read through older version.

Happy new year,
Longying

Wolfgang Bangerth

unread,
Dec 27, 2023, 1:14:39 PM12/27/23
to dea...@googlegroups.com
On 12/27/23 06:05, LY XXXiao wrote:
>
> I think I found the reason. It's because I was using older version of dealii
> generating the vtu file and therefore can only read through older version.

Yes, that sounds plausible.
Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/


Reply all
Reply to author
Forward
0 new messages