-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update meshgen to improve documentation, improve benchmarking and add in a unit test
- Loading branch information
1 parent
b449725
commit c4e9114
Showing
11 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Square domain with a hole | ||
import meshgen | ||
import plot | ||
|
||
var e0 = Domain(fn (x) ((x[0])^2+x[1]^2-1)) | ||
var mg = MeshGen(e0, [-2..2:0.2, -2..2:0.2], quiet=true) | ||
var m = mg.build() | ||
|
||
print m | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Domain composed of a single disk | ||
import meshgen | ||
import plot | ||
|
||
var dom = fn (x) -(x[0]^2+x[1]^2-1) | ||
var mg = MeshGen(dom, [-1..1:0.2, -1..1:0.2], quiet=true) | ||
var m = mg.build() | ||
|
||
print ismesh(m) | ||
// expect: true |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.