Opened 11 years ago

Closed 11 years ago

#415 closed defect (fixed)

down dip spacing ignored in AbstractEvenlyGriddedSurface

Reported by: Peter Powers Owned by:
Priority: major Milestone: OpenSHA 2.0
Component: sha Version:
Keywords: Cc:

Description

In

	protected EvenlyGriddedSurfFromSimpleFaultData(FaultTrace faultTrace, double aveDip,
			double upperSeismogenicDepth, double lowerSeismogenicDepth, double maxGridSpacingAlong,
			double maxGridSpacingDown) throws
			FaultException {
		
		double length = faultTrace.getTraceLength();
		double gridSpacingAlong = length/Math.ceil(length/maxGridSpacingAlong);
		double downDipWidth = (lowerSeismogenicDepth-upperSeismogenicDepth)/Math.sin(aveDip*Math.PI/180 );
		double gridSpacingDown = downDipWidth/Math.ceil(downDipWidth/maxGridSpacingAlong);
/*		
		System.out.println(faultTrace.getName()+"\n\t"+
				maxGridSpacingAlong+"\t"+(float)gridSpacingAlong+"\t"+(float)gridSpacingDown+"\t"+
				(float)(faultTrace.getTraceLength()/gridSpacingAlong)+"\t"+
				(float)(downDipWidth/gridSpacingDown));
*/				

		set(faultTrace, aveDip, upperSeismogenicDepth, lowerSeismogenicDepth, gridSpacingAlong, gridSpacingDown);
	}

the maxGridSpacingDown isn't used, the along strike value is (mistakenly?) used instead.

Change History (1)

comment:1 Changed 11 years ago by Peter Powers

Resolution: fixed
Status: newclosed

fixed in [9912]

Note: See TracTickets for help on using tickets.