On 4/11/23 01:40, 'chen zheng' via deal.II User Group wrote:
> I modified Step 40 and an error occurred when I called comsol-mphtxt. I
> compared the read_comsol_mphtxt function to the file and found no error.
I looked into this, and the underlying issue turned out to be that the
COMSOL .mphtxt file uses DOS/Windows-style line endings whereas I
believe that you are running the program on Linux, which uses a
different style of line endings.
The problem goes away once you change the line endings from \r\n
(Windows) to \n (Unix). But this is a recurring problem, and so I've
also written the following patch:
https://github.com/dealii/dealii/pull/15079
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/