Hello,
If you add the three lines at the bottom of this message before Line 295 in the link I sent you in my previous reply, You will be able to set the location of the hypocenter.
Please note that 1. These lines set the location of the hypocenter but not the epicenter. The hypocenter needs to be defined on the fault surface with a depth, and you can add "print(rupSurface.getEvenlyDiscritizedListOfLocsOnSurface().toString())" before Line 295 to check the geometry of the fault surface. 2. The hypocenter defined here is only used by Cambell & Bozorgnia (2014) ground motion models and nowhere else in the backend calculation. If you would like to define the hypocenter for other use, please let us know, and we will see how we can help.
Hope this is clear.
Jinyan
rup = rupList.get(rupture_index)
rup.setHypocenterLocation(Location(33.97, -117.91 , 0))
rupList.set(rupture_index, rup)