getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] Redundant method in getfem::model??


From: Yves Renard
Subject: Re: [Getfem-users] Redundant method in getfem::model??
Date: Thu, 16 Feb 2012 13:21:16 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.26) Gecko/20120131 Lightning/1.0b2 Thunderbird/3.1.18

Dear Kostas,

You are right, these two methods do similar things. I have deprecated 
'get_brick' and I have committed the changes.

Yves.


Le 16/02/2012 10:27, logari81 a écrit :
> 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
> address@hidden
> https://mail.gna.org/listinfo/getfem-users


-- 

  Yves Renard (address@hidden)       tel : (33) 04.72.43.87.08
  Pole de Mathematiques, INSA-Lyon             fax : (33) 04.72.43.85.29
  20, rue Albert Einstein
  69621 Villeurbanne Cedex, FRANCE
  http://math.univ-lyon1.fr/~renard

---------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]