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

Function addStiffnessTensor

generated_code/general.py:4–10  ·  view source on GitHub ↗
(generator)

Source from the content-addressed store, hash-verified

2from yateto.input import parseXMLMatrixFile, parseJSONMatrixFile
3
4def addStiffnessTensor(generator):
5 stiffnessTensor = Tensor('stiffnessTensor', (3, 3, 3, 3))
6 direction = Tensor('direction', (3,))
7 christoffel = Tensor('christoffel', (3,3))
8
9 computeChristoffel = christoffel['ik'] <= stiffnessTensor['ijkl'] * direction['j'] * direction['l']
10 generator.add('computeChristoffel', computeChristoffel)
11
12def includeMatrices(matricesDir):
13 matrices = parseJSONMatrixFile('{}/sampling_directions.json'.format(matricesDir))

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected