55 <<
"Cannot read file " << filename
75 if (
line.size() > 72 &&
line[72] ==
'+')
84 if (buf.size() > 72 && buf[72] ==
'+')
86 line += buf.substr(8, 64);
90 line += buf.substr(8, buf.size()-8);
102 if (cmd ==
"CBEAM" || cmd ==
"CROD")
113 else if (cmd ==
"PLOTEL")
124 else if (cmd ==
"GRID")
134 else if (cmd ==
"GRID*")
150 <<
"Expected continuation symbol '*' when reading GRID*"
151 <<
" (double precision coordinate) format" <<
nl
164 storedPoints().transfer(dynPoints);
173 mapPointId.
insert(pointId[i], i);
184 edge&
e = dynEdges[i];
185 e[0] = mapPointId[
e[0]];
186 e[1] = mapPointId[
e[1]];
188 usedPoints.
set(
e[0]);
189 usedPoints.
set(
e[1]);
195 if (
unsigned(
points().size()) != usedPoints.
count())
202 if (usedPoints.
get(pointi))
206 pts[nUsed] = pts[pointi];
210 mapPointId[pointi] = nUsed;
221 edge&
e = dynEdges[edgeI];
223 e[0] = mapPointId[
e[0]];
224 e[1] = mapPointId[
e[1]];
#define forAll(list, i)
Loop across all elements in list.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void clearStorage()
Clear the list and delete storage.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & shrink()
Shrink the allocated space to the number of elements used.
void transfer(HashTable< T, Key, Hash > &)
Transfer the contents of the argument table into this table.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
void clear()
Clear all entries from table.
const fileName & name() const
Return the name of the stream.
label lineNumber() const
Return current stream line number.
ISstream & getLine(string &, const bool continuation=true)
Read line into a string.
Input from memory buffer stream.
bool good() const
Return true if next operation might succeed.
void size(const label)
Override size to be inconsistent with allocated storage.
void setSize(const label)
Reset size of List.
void set(const PackedList< 1 > &)
Set specified bits.
unsigned int get(const label) const
Get value at index I.
unsigned int count() const
Count number of bits set, O(log(n))
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A class for handling file names.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static scalar parseNASCoord(const string &s)
label readLabel(Istream &is)