error while running code dependent on step-44

24 views
Skip to first unread message

ME20D503 NEWTON

unread,
Jul 7, 2022, 11:46:27 AM7/7/22
to deal.II User Group
Dear all,
i am getting error while running a code based on step-44.
i am not able to understand the error output,
can anyone please help me out ?

thanks in advance.

............................
Exception on processing:

--------------------------------------------------------
An error occurred in line <953> of file </home/iittp/fem9.1.1/dealii-9.1.1/include/deal.II/lac/vector.templates.h> in function
    void dealii::Vector<Number>::block_read(std::istream&) [with Number = double; std::istream = std::basic_istream<char>]
The violated condition was:
    in
Additional information:
    An input/output error has occurred. There are a number of reasons why this may be happening, both for reading and writing operations.

If this happens during an operation that tries to read data: First, you may be trying to read from a file that doesn't exist or that is not readable given its file permissions. Second, deal.II uses this error at times if it tries to read information from a file but where the information in the file does not correspond to the expected format. An example would be a truncated file, or a mesh file that contains not only sections that describe the vertices and cells, but also sections for additional data that deal.II does not understand.

If this happens during an operation that tries to write data: you may be trying to write to a file to which file or directory permissions do not allow you to write. A typical example is where you specify an output file in a directory that does not exist.
--------------------------------------------------------


Wolfgang Bangerth

unread,
Jul 7, 2022, 12:48:43 PM7/7/22
to dea...@googlegroups.com
On 7/7/22 09:46, ME20D503 NEWTON wrote:
> *** Caution: EXTERNAL Sender ***
>
> Dear all,
> i am getting error while running a code based on step-44.
> i am not able to understand the error output,
> can anyone please help me out ?

ME20D503 NEWTON: As I think others have already pointed out, many error
messages in deal.II are quite detailed. This one has three paragraphs:


>     An input/output error has occurred. There are a number of reasons why
> this may be happening, both for reading and writing operations.
>
> If this happens during an operation that tries to read data: First, you may be
> trying to read from a file that doesn't exist or that is not readable given
> its file permissions. Second, deal.II uses this error at times if it tries to
> read information from a file but where the information in the file does not
> correspond to the expected format. An example would be a truncated file, or a
> mesh file that contains not only sections that describe the vertices and
> cells, but also sections for additional data that deal.II does not understand.
>
> If this happens during an operation that tries to write data: you may be
> trying to write to a file to which file or directory permissions do not allow
> you to write. A typical example is where you specify an output file in a
> directory that does not exist.

Which part of this is not clear to you? The error is produced by a function
called 'block_read', so the second paragraph clearly applies. What could we
help you with that goes beyond what the error message already says?

Best
WB

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

Reply all
Reply to author
Forward
0 new messages