Skip to content

Allow for custom misfit functions #8

@larsgeb

Description

@larsgeb

I want to include a routine on the Python side that allows for custom misfit functions and adjoint sources. This can be easily facilitated by using

.def("get_synthetic_data", &fdModelExtended::get_synthetic_data)
to get the forward result and writing a new interface to set the adjoint sources. These should override the fdModel.calculate_l2_misfit and fdModel.calculate_l2_adjoint_sources methods, possibly aliasing that first to something more general, i.e. calculate_misfit.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpybind-enhancementAn enhancement of the code that must likely be done on the Python/C++ interface.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions