Hello,
It looks like Salvus is expecting the material parameters to be discretized onto the element vertices, but only only value per element was required. To fix the problem, and if the velocities on each element are meant to be constant (seems as if they are), you can modify the lines as follows:
m.attach_field('fluid', np.zeros(m.nelem))
for i in range(m.nodes_per_element):
m.attach_field('VP_{}'.format(i), vpa)
m.attach_field('VS_{}'.format(i), vsa)
m.attach_field('RHO_{}'.format(i), rhoa)
This will attach the correct material parameters to each element vertex. You can alternatively define a continuous parameterization by passing parameter arrays with a length equal to the number of nodes in the mesh.
Let us know if this fixes your issue.
Mike.
> --
> You received this message because you are subscribed to the Google Groups "Salvus" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
salvus+un...@googlegroups.com.
> To post to this group, send email to
sal...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/salvus/3125c1c7-d944-4726-b646-07a9549aa32d%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.