Hi,

I have realized there are two similar methods in the model class. The methods model::get_brick and model::brick_pointer differ only in bounds checking.

    pbrick get_brick(size_type ib) const { return bricks[ib].pbr; }

    pbrick brick_pointer(size_type ind_brick) {
      GMM_ASSERT1(ind_brick < bricks.size(), "Inexistent brick");
      return bricks[ind_brick].pbr;
    }

Should we remove one of them?

Kostas

_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users

Reply via email to