Error reading a comsol mphtxt file

30 views
Skip to first unread message

yy.wayne

unread,
Oct 16, 2022, 3:45:52 AM10/16/22
to deal.II User Group
I'm currently using deal.II 9.4.0 version (virtual box 1.22). When I read a comsol mphtxt mesh(attached below, a 2D plane in 3D space), it throws an error on grid_in.cc line 1557 that s!="4 Mesh".

I trace back the error with whole_file.get(). It turns out after the line "0 0 1" I get char 32(space), 13(^M), 10(^J) and then 52(number 4). I guess it's a bug of deal.II since I never modify the comsol mphtxt file?bug_read_mphtxt.png
step-29.mphtxt

Wolfgang Bangerth

unread,
Oct 24, 2022, 11:36:44 AM10/24/22
to dea...@googlegroups.com
On 10/16/22 01:45, 'yy.wayne' via deal.II User Group wrote:
> *** Caution: EXTERNAL Sender ***
> file?bug_read_mphtxt.png

yy.wayne:
I took a look at your mesh last week and there are a few bugs in the
deal.II code that show up in your case. I put a patch for one set of
problems into
https://github.com/dealii/dealii/pull/14374
but this does not fix the problem in its entirety. I will look into the
remaining issues later this week or next. I mainly wanted to let you
know that the problem is not forgotten.

Best
W.

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

yy.wayne

unread,
Oct 24, 2022, 8:53:21 PM10/24/22
to deal.II User Group
That's great. Thanks! :)
Reply all
Reply to author
Forward
0 new messages