|
From: | logari81 |
Subject: | [Getfem-users] Redundant method in getfem::model?? |
Date: | Thu, 16 Feb 2012 10:27:00 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120129 Thunderbird/10.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |