Skip to content

Conditional -morpho #413

Answered by rquey
dikshanshs asked this question in Q&A
Discussion options

You must be logged in to vote

For now, if-else conditions cannot be used for expressions, so, it takes 2 steps:

neper -T -n 10 -statcell diameq
awk '{if ($1>0.6) {print "lamellar(w=0.1)"} else {print "gg(0.3)"}}' n10-id1.stcell | nl > morpho_msfile
neper -T -n 10::from_morpho -morpho "voronoi::msfile(morpho_msfile)" -o d

Visualize:

neper -V d.tess -datacellcol "scaleid(1)" -datacelltrs 0.5 -print img

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rquey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants