From: John Peterson <peterson@cf...>  20091026 22:10:02

On Mon, Oct 26, 2009 at 3:14 PM, Derek Gaston <friedmud@...> wrote: > Is there something I'm missing here? Is the only way to change error > estimator weights to go through a process like this: > > > std::vector<FEMNormType> norms(weights.size(), H1_SEMINORM); > SystemNorm sys_norm(norms, weights); > error_estimator.error_norm = sys_norm; > > Where weights is a vector of the per variable weights you want to apply. > > Really? This used to be uber easy... but now we actually have to know > something about the norm type the error estimator uses in order to set > the weights? If you are using KellyErrorEstimator, it appears that it ignores error_norm.type() anyway, but I agree with you... this feature got a lot more general and a lot harder to use. > Could we just provide a way to change the weights on a SystemNorm > object without having to create a new one? You can get the weights > out... but you can't set them once the object is created... Yeah, SystemNorm is almost like a struct, nothing derives from it. The _weights and _norms vectors could be public members or at least have accessors... I believe this is Roy's class though, so I will let him have the final say...  John 