mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-28 10:49:37 +08:00
initial set up
This commit is contained in:
+4
-2
@@ -1,8 +1,10 @@
|
||||
.. _api_PF:
|
||||
|
||||
|
||||
PF
|
||||
**
|
||||
Magnetics
|
||||
*********
|
||||
|
||||
|
||||
|
||||
.. automodule:: simpegPF.PF
|
||||
:show-inheritance:
|
||||
|
||||
@@ -1,15 +1,31 @@
|
||||
import unittest
|
||||
from SimPEG import *
|
||||
import simpegPF
|
||||
import simpegPF as PF
|
||||
|
||||
|
||||
class PFProblemTests(unittest.TestCase):
|
||||
class MagProblemTests(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
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)
|
||||
|
||||
def test_awesome(self):
|
||||
self.assertTrue(True)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user