Hi all, I’m modeling subduction in a cartesian box and I’m trying to refine the surface and the upper-lower mantle boundary.
I’m using the same syntax I was using in the previous aspect version, but I’m having troubles using the && operator. The parameter file section is:
subsection Minimum refinement function
set Coordinate system = cartesian
set Variable names = x, y
set Function constants = discontinuity=660.e3, surface=100.e3, ymax = 900.e3
set Function expression = ( (ymax-y)< surface ? 6 : \
(((ymax-y)>(discontinuity-30.e3)) && ((ymax-y)<(discontinuity+30.e3))) ? 5 : \
0)
end
If I use this expression, the surface is refined but the upper-lower mantle boundary is ignored.
If I use this method and either one of the expressions in the line with &&, it works. If, instead of &&, I use the logical operator ||, it does what I expect it to do.
Can I please get help with this?
Thanks,
Valeria