This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pygmsh.built_in.geometry import Geometry | |
from pygmsh import generate_mesh | |
import meshio | |
import dolfin | |
geom = Geometry() | |
lc = .1 | |
p0 = geom.add_point([0, 0, 0], lcar=lc) | |
p1 = geom.add_point([1, 0, 0], lcar=lc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import abc | |
import asyncio | |
class MessageBox: | |
""" A class that can | |
- send messages of a certain type with some context (== put a message into | |
an internal queue), | |
- receive messages from the internal queue | |
""" |