mesh-adaptation / animate

Anisotropic mesh adaptation toolkit for Firedrake
MIT License
5 stars 0 forks source link

Metrics parameters argument to RiemannianMetric #89

Closed ddundo closed 3 months ago

ddundo commented 3 months ago

How about we pass metric parameters as an argument to RiemannianMetric instead of using set_parameters? We could then rename it to update_parameters.

jwallwork23 commented 3 months ago

Yeah it would be simple enough to have __init__ accept a metric_parameters kwarg and call set_parameters/update_parameters inside. PR welcome!