Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
7d833640
Commit
7d833640
authored
Apr 14, 2011
by
mattijs
Browse files
STYLE: plane: improved error message
parent
2b24e28e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/primitiveShapes/plane/plane.C
View file @
7d833640
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -96,7 +96,8 @@ void Foam::plane::calcPntAndVec
" const point&,
\n
"
" const point&
\n
"
")
\n
"
)
<<
"Bad points."
<<
abort
(
FatalError
);
)
<<
"Bad points:"
<<
point1
<<
' '
<<
point2
<<
' '
<<
point3
<<
abort
(
FatalError
);
}
unitVector_
=
line12
^
line23
;
...
...
@@ -112,7 +113,8 @@ void Foam::plane::calcPntAndVec
" const point&,
\n
"
" const point&
\n
"
")
\n
"
)
<<
"Plane normal defined with zero length"
)
<<
"Plane normal defined with zero length"
<<
nl
<<
"Bad points:"
<<
point1
<<
' '
<<
point2
<<
' '
<<
point3
<<
abort
(
FatalError
);
}
...
...
@@ -137,7 +139,7 @@ Foam::plane::plane(const vector& normalVector)
else
{
FatalErrorIn
(
"plane::plane(const vector&)"
)
<<
"plane normal has zero length
"
<<
"plane normal has zero length
. basePoint:"
<<
basePoint_
<<
abort
(
FatalError
);
}
}
...
...
@@ -158,7 +160,7 @@ Foam::plane::plane(const point& basePoint, const vector& normalVector)
else
{
FatalErrorIn
(
"plane::plane(const point&, const vector&)"
)
<<
"plane normal has zero length
"
<<
"plane normal has zero length
. basePoint:"
<<
basePoint_
<<
abort
(
FatalError
);
}
}
...
...
@@ -228,8 +230,7 @@ Foam::plane::plane(const dictionary& dict)
(
"plane::plane(const dictionary&)"
,
dict
)
<<
"Invalid plane type: "
<<
planeType
)
<<
"Invalid plane type: "
<<
planeType
<<
abort
(
FatalIOError
);
}
}
...
...
@@ -250,7 +251,7 @@ Foam::plane::plane(Istream& is)
else
{
FatalErrorIn
(
"plane::plane(Istream& is)"
)
<<
"plane normal has zero length
"
<<
"plane normal has zero length
. basePoint:"
<<
basePoint_
<<
abort
(
FatalError
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment