On 3/25/24 00:13, Yufei Fang wrote:
>
> I appreciate the effort and time you dedicated to reviewing and addressing the
> error I encountered. Your guidance has been beneficial. Following your advice,
> I have updated the mesh file to incorporate triangles. The file now has the
> following structure:
> """
> 3 # number of vertices per element
> 16308 # number of elements
> # Elements
> 0 2 1
> 3 1 2
> 1 3 5
> ...
> """
> However, this modification has led to a new error message:
> """
> An error occurred in line <1557> of file
> </dssg/opt/icelake/linux-centos8-icelake/gcc-9.3.0/dealii-9.4.0/src/dealii-9.4.0/source/grid/grid_in.cc> in function
> void dealii::GridIn<dim, spacedim>::read_comsol_mphtxt(std::istream&)
> [with int dim = 2; int spacedim = 3; std::istream = std::basic_istream<char>]
> *The violated condition was:
> s == "4 Mesh"*
> Additional information:
> You are trying to use functionality in deal.II that is currently not
> implemented. In many cases, this indicates that there simply didn't
> appear much of a need for it, or that the author of the original code
> did not have the time to implement a particular case. If you hit this
> exception, it is therefore worth the time to look into the code to
> find out whether you may be able to implement the missing
> functionality. If you do, please consider providing a patch to the
> deal.II development sources (see the deal.II website on how to
> contribute).
Yufei:
the error indicates that the deal.II version you are using (9.4) had not yet
implemented the ability to read triangle meshes. But this is already fixed in
9.5, I believe, and I verified that the mesh can be properly read with the
current development version. You'll either have to update to 9.5, or use
quadrilateral meshes instead (which I *think* should work in 9.4, but am not
entirely sure).
Best
W.