MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / parsePOINTS_2_0

Function parsePOINTS_2_0

preprocessing/science/rconv/src/SRF.cpp:69–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void parsePOINTS_2_0(std::ifstream& in, SRFPointSource& ps)
70{
71 double vs, den, dummy;
72 unsigned nt[3];
73
74 // Point source, line 1
75 in >> ps.longitude >> ps.latitude >> ps.depth >> ps.strike >> ps.dip >> ps.area >> ps.tinit >> ps.dt >> vs >> den;
76 // Point source, line 2
77 in >> ps.rake >> dummy >> nt[0] >> dummy >> nt[1] >> dummy >> nt[2];
78
79 ps.shearModulus = (vs > 0.0 && den > 0.0) ? vs * vs * den : 0.0;
80
81 for (unsigned i = 0; i < 3; ++i) {
82 parseSamples(in, ps.slipRate[i], nt[i]);
83 }
84}
85
86std::vector<SRFPointSource> parseSRF(char const* filename)
87{

Callers

nothing calls this directly

Calls 1

parseSamplesFunction · 0.85

Tested by

no test coverage detected