neperfepx / neper

Polycrystal generation and meshing
http://neper.info
GNU General Public License v3.0
205 stars 53 forks source link

Support conditional statements for expressions #414

Open rquey opened 2 years ago

rquey commented 2 years ago

It would be nice if conditional statements (the lazy ?:) could be used for expressions, as in

neper -T -n 10::from_morpho -morpho "id<5?gg(0.1):lamellar(w=0.1)"

For now, it takes 2 steps to do the same thing, as discussed in #413.