@@ -19,22 +19,15 @@ Cylinder :: ~Cylinder()
1919}
2020
2121
22- IRResultType
23- Cylinder :: initializeFrom (InputRecord * ir )
22+ void
23+ Cylinder :: initializeFrom (ConverterInputRecord & ir )
2424// Gets from the source line from the data file all the data of the receiver.
2525{
26- const char * __proc = "initializeFrom" ; // Required by IR_GIVE_FIELD macro
27- IRResultType result ; // Required by IR_GIVE_FIELD macro
28-
29- // int j, size;
30- // oofem::FloatArray vertices;
31- // IntArray *dofIDArry;
32- IR_GIVE_FIELD (ir , line , IFT_Cylinder_line , "line" );
33- IR_GIVE_FIELD (ir , radius , IFT_Cylinder_radius , "radius" ); // Macro
26+ IR_GIVE_FIELD (ir , line , _IFT_Cylinder_line );
27+ IR_GIVE_FIELD (ir , radius , _IFT_Cylinder_radius ); // Macro
3428 refinement = 1. ;
35- IR_GIVE_OPTIONAL_FIELD (ir , refinement , IFT_Cylinder_refine , "refine" ); // Macro
36- return IRRT_OK ;
37-
29+ IR_GIVE_OPTIONAL_FIELD (ir , refinement , _IFT_Cylinder_refine ); // Macro
30+ return ;
3831}
3932
4033
@@ -60,10 +53,10 @@ void Cylinder :: findOutsiders(oofem::FloatArray &boundaries)
6053 //For nodes: 0 = inside, 1 = outside, 2 = on boundary
6154 //For elements: 0 = inside, 1 = completetly outside (one node could be on boundary), 2 = one node inside and one outside, 3 = on boundary
6255
63- IntArray nodes ;
56+ oofem :: IntArray nodes ;
6457 oofem ::FloatArray coords , coordsOne , coordsTwo ;
6558 int outsideFlag ;
66- IntArray locationArray (2 );
59+ oofem :: IntArray locationArray (2 );
6760
6861 double newTol = 1.e3 * this -> grid -> giveTol ();
6962
@@ -186,10 +179,10 @@ void Cylinder :: findOutsiders(oofem::FloatArray &boundaries)
186179int
187180Cylinder :: modifyVoronoiCrossSection (int elementNumber )
188181{
189- IntArray crossSectionElements ;
190- IntArray crossSectionVertices ;
182+ oofem :: IntArray crossSectionElements ;
183+ oofem :: IntArray crossSectionVertices ;
191184
192- IntArray nodes (2 );
185+ oofem :: IntArray nodes (2 );
193186
194187 oofem ::FloatArray coords (3 );
195188
@@ -235,7 +228,7 @@ Cylinder :: modifyVoronoiCrossSection(int elementNumber)
235228
236229 //Resize cross-section elements
237230 int newSize = elementSize - elementCounter ;
238- IntArray modifiedCrossSectionElements (newSize );
231+ oofem :: IntArray modifiedCrossSectionElements (newSize );
239232 int help = 0 ;
240233 for ( int i = 0 ; i < elementSize ; i ++ ) {
241234 if ( crossSectionElements .at (i + 1 ) == 0 ) {
@@ -256,7 +249,7 @@ Cylinder :: modifyVoronoiCrossSection(int elementNumber)
256249 }
257250
258251 //Write modified vertex vector
259- IntArray modifiedCrossSectionVertices (vertexSize - nodeCounter );
252+ oofem :: IntArray modifiedCrossSectionVertices (vertexSize - nodeCounter );
260253 help = 0 ;
261254 for ( int i = 0 ; i < vertexSize ; i ++ ) {
262255 if ( crossSectionVertices .at (i + 1 ) == 0 ) {
@@ -282,10 +275,10 @@ int
282275Cylinder :: areaCheck (int elementNumber )
283276{
284277
285- IntArray crossSectionElements ;
286- IntArray crossSectionVertices ;
278+ oofem :: IntArray crossSectionElements ;
279+ oofem :: IntArray crossSectionVertices ;
287280
288- IntArray nodes (2 );
281+ oofem :: IntArray nodes (2 );
289282
290283 oofem ::FloatArray coords (3 );
291284
0 commit comments