Skip to content

Commit

Permalink
add cube and rectangle reader
Browse files Browse the repository at this point in the history
  • Loading branch information
yangbai90 committed Nov 4, 2019
1 parent 26c5918 commit f0a6e4f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions src/GeoReader/PrintInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,18 @@ void GeoReader::PrintInfo()
printf("*** tolerance=%14.6e, size=%14.6e ***\n",_tolerance,_Size);
printf("*** Input geo file= %-40s ***\n",_GeoFileName.c_str());
printf("*** Output geo file= %-40s***\n",_NewGeoFileName.c_str());
switch(_JobType){
case JobType::RECTANGLE:
printf("*** LeftBC lines=%8d, RightBC lines=%8d ***\n",(int)_LeftLineIDSet.size(),(int)_RightLineIDSet.size());
printf("*** BottomBC lines=%8d, TopBC lines=%8d ***\n",(int)_BottomLineIDSet.size(),(int)_TopLineIDSet.size());
break;
case JobType::CUBIC:
printf("*** LeftBC surfaces=%8d, RightBC surfaces=%8d ***\n",(int)_LeftSurfaceIDSet.size(),(int)_RightSurfaceIDSet.size());
printf("*** BottomBC surfaces=%8d, TopBC surfaces=%8d ***\n",(int)_BottomSurfaceIDSet.size(),(int)_TopSurfaceIDSet.size());
printf("*** BackBC surfaces=%8d, FrontBC surfaces=%8d ***\n",(int)_BackSurfaceIDSet.size(),(int)_FrontSurfaceIDSet.size());
break;
default:
break;
}
cout<<"******************************************************************"<<endl;
}
2 changes: 1 addition & 1 deletion tests/cubic/newcube.geo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dx=5;
dx=4;
Point (1)={5.128839e+01,8.584205e+00,3.250609e+01,dx};
Point (2)={5.076616e+01,1.325223e+01,3.324697e+01,dx};
Point (3)={5.089360e+01,9.197389e+00,3.303166e+01,dx};
Expand Down
2 changes: 1 addition & 1 deletion tests/rectangle/newrect.geo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dx=5;
dx=2;
Point (1)={9.721829e+01,1.286578e+02,-0.000000e+00,dx};
Point (2)={9.811735e+01,1.278118e+02,-0.000000e+00,dx};
Point (3)={8.931841e+01,1.208030e+02,-0.000000e+00,dx};
Expand Down

0 comments on commit f0a6e4f

Please sign in to comment.