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

Function parsePOINTS_1_0

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

Source from the content-addressed store, hash-verified

50}
51
52void parsePOINTS_1_0(std::ifstream& in, SRFPointSource& ps)
53{
54 double dummy;
55 unsigned nt[3];
56
57 // Point source, line 1
58 in >> ps.longitude >> ps.latitude >> ps.depth >> ps.strike >> ps.dip >> ps.area >> ps.tinit >> ps.dt;
59 // Point source, line 2
60 in >> ps.rake >> dummy >> nt[0] >> dummy >> nt[1] >> dummy >> nt[2];
61
62 ps.shearModulus = 0.0; // = unknown
63
64 for (unsigned i = 0; i < 3; ++i) {
65 parseSamples(in, ps.slipRate[i], nt[i]);
66 }
67}
68
69void parsePOINTS_2_0(std::ifstream& in, SRFPointSource& ps)
70{

Callers

nothing calls this directly

Calls 1

parseSamplesFunction · 0.85

Tested by

no test coverage detected