OptimizationProblem: log a warning when an observable is added twice
When an observable is added twice to an OptimizationProblem
, h5py raises an error because the corresponding dataset already exists.
This can happen if the user automatically adds all the inputs of the disciplines.
The OptimizationProblem
should log a warning when an observable is added twice and does not add it in the H5 file.