Re: [deal.II] Re: deal.II discussion group: Feedback and guidelines

2020-08-06 Thread Wolfgang Bangerth


Kaleem -- please use a subject for your email that indicates the concrete 
question you have.



The following error shown in step-49 during make run.
Exception on processing:


An error occurred in line <1430> of file 
 
in function
     void dealii::GridIn::read_msh(std::istream&) [with int dim 
= 2; int spacedim = 2; std::istream = std::basic_istream]

The violated condition was:
     in
Additional information:


Yes, thanks for reporting this. It's a bug in the library :-(

The problem is that two files that should be in this directory are not, in 
fact. If you take the two files attached to this email, and put them into the 
step-49/ directory, everything should work!


Best
 W.

--

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

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/af3b3ed5-f17f-b714-7c9f-63352fb77090%40colostate.edu.
cl1 = 1;

Point(1) = {-1, 0.3, 0, 1};
Point(2) = {0.5, 0.3, 0, 1};
Point(3) = {-1, -0.5, 0, 1};
Point(4) = {0.5, -0.5, 0, 1};

Point(7) = {-0.3, -0.1, 0, 1};
Point(8) = {-0.2, -0.1, 0, 1};
Point(9) = {-0.3, 0.1, -0, 1};
Point(10) = {-0.4, -0.1, 0, 1};
Point(11) = {-0.3, -0.3, 0, 1};

Point(12) = {0.1, -0.1, 0, 1};
Point(13) = {0.2, 0.0, 0, 1};
Point(14) = {0.3, -0.1, 0, 1};

// lines of the outer box:
Line(1) = {1, 2};
Line(2) = {4, 2};
Line(3) = {1, 3};
Line(4) = {3, 4};

// the first cutout:
Ellipse(5) = {8, 7, 11, 9};
Ellipse(6) = {9, 7, 11, 10};
Ellipse(7) = {8, 7, 10, 11};
Ellipse(8) = {11, 7, 8, 10};

// the second cutout:
Line(9) = {12, 13};
Line(10) = {13, 14};
Line(11) = {14, 12};

// loops of the outside and the two cutouts
Line Loop(12) = {1, -2, -4, -3};
Line Loop(14) = {5, 6, -8, -7};
Line Loop(15) = {9,10,11};

// these define the boundary indicators in deal.II:
Physical Line(0) = {1, 2, 4, 3};
Physical Line(1) = {6, 5, 8, 7};
Physical Line(2) = {9, 10, 11};


// you need the physical surface, because that is what deal.II reads in
Plane Surface(16) = {12, 14, 15};
Physical Surface(17) = {16};

// some parameters for the meshing:
Mesh.Algorithm = 8;
Mesh.RecombineAll = 1;
Mesh.CharacteristicLengthFactor = 0.09;
Mesh.SubdivisionAlgorithm = 1;
Mesh.Smoothing = 20;
Show "*";


example.msh
Description: Mesh model


[deal.II] Re: deal.II discussion group: Feedback and guidelines

2020-08-06 Thread kaleem iqbal
The following error shown in step-49 during make run.
Exception on processing: 


An error occurred in line <1430> of file 
 
in function
void dealii::GridIn::read_msh(std::istream&) [with int 
dim = 2; int spacedim = 2; std::istream = std::basic_istream]
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.


Aborting!

CMakeFiles/run.dir/build.make:57: recipe for target 'CMakeFiles/run' failed
make[3]: *** [CMakeFiles/run] Error 1
CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/run.dir/all' failed
make[2]: *** [CMakeFiles/run.dir/all] Error 2
CMakeFiles/Makefile2:138: recipe for target 'CMakeFiles/run.dir/rule' failed
make[1]: *** [CMakeFiles/run.dir/rule] Error 2
Makefile:144: recipe for target 'run' failed
make: *** [run] Error 2

Regard's
Kaleem iqbal

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/6f017fb4-2ba8-4c46-a210-8b32f5d38df0o%40googlegroups.com.