Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple dispatch for viscous displacement solver #134

Open
JanJereczek opened this issue Nov 4, 2024 · 0 comments
Open

Multiple dispatch for viscous displacement solver #134

JanJereczek opened this issue Nov 4, 2024 · 0 comments

Comments

@JanJereczek
Copy link
Owner

For now, updating the (vertical) viscous displacement relies on if-else statements that select the right method to call depending on the user's choice. This is not particularly elegant, since unused parameters need to be defined. Most importantly, it does not allow the user to easily extend the code base with a new updating method. The new structure should look like:

abstract type ElasticLithoTransientAsteno end

struct LVELVA <: ElasticLithoTransientAsteno
....
end

method = LVELVA(params...)

function update_viscous_displacement(args...)
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant