mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-28 20:56:57 +08:00
33 lines
567 B
Python
33 lines
567 B
Python
import unittest
|
|
from SimPEG import *
|
|
import simpegPF as PF
|
|
|
|
|
|
class MagProblemTests(unittest.TestCase):
|
|
|
|
def setUp(self):
|
|
M = Mesh.TensorMesh([10,10])
|
|
mod = Model.LogModel(M)
|
|
prob = PF.Mag.MagProblem(M, mod, None)
|
|
|
|
self.prob = prob
|
|
self.M = M
|
|
|
|
def test_forward(self):
|
|
|
|
passed = True
|
|
self.assertTrue(passed)
|
|
|
|
|
|
def test_DirchletBC(self):
|
|
q = lambda x: np.sin(x)
|
|
|
|
M = self.M
|
|
order = 2
|
|
self.assertTrue(order > 1)
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|