Discovered a couple more shape parameter values used in RockSim csv files.

This commit is contained in:
Kevin Ruland 2012-06-05 18:10:04 +00:00
parent 274f646124
commit fb1262897d

View File

@ -39,12 +39,22 @@ public class ShapeColumnParser extends BaseColumnParser {
if ( "power-series".equals(lc) ) {
shape = Shape.POWER;
}
// guessing at what "ps" means. I think it might be power series.
if ( "ps".equals(lc) ) {
shape = Shape.POWER;
}
if ( "1".equals(lc) ) {
shape = Shape.OGIVE;
}
if( "0". equals(lc) ) {
shape = Shape.CONICAL;
}
if( "". equals(lc) ) {
shape = Shape.CONICAL;
}
if ( "3".equals(lc) ) {
shape = Shape.ELLIPSOID;
}
if ( shape == null ) {
throw new BugException("Invalid shape parameter: " + columnData);
}