MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / component

Method component

src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H:138–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136
137template<class Form, class Cmpt, direction Ncmpts>
138inline void VectorSpace<Form, Cmpt, Ncmpts>::component
139(
140 Cmpt& c,
141 const direction d
142) const
143{
144 #ifdef FULLDEBUG
145 if (d >= Ncmpts)
146 {
147 FatalErrorInFunction
148 << "index out of range"
149 << abort(FatalError);
150 }
151 #endif
152
153 c = v_[d];
154}
155
156
157template<class Form, class Cmpt, direction Ncmpts>

Callers 3

Random.CFile · 0.45
VectorSpaceI.HFile · 0.45

Calls 1

abortFunction · 0.50

Tested by

no test coverage detected