[Kratos] proposal to remove the variable ERASE_FLAG

Pooyan Dadvand pooyan en cimne.upc.edu
Jue Jun 11 10:25:05 CEST 2015


I agree with you Riccardo and I encourage the use of Flags instead of variables also for other “historical” cases.

 

Bests,

 

Pooyan. 

 

From: kratos-bounces en listas.cimne.upc.edu [mailto:kratos-bounces en listas.cimne.upc.edu] On Behalf Of Riccardo Rossi
Sent: jueves, 11 de junio de 2015 10:13
To: kratos
Subject: [Kratos] proposal to remove the variable ERASE_FLAG

 

Dear all,

         i am writing you to make a cleaning up proposal.

The point is that as of now we have a Kratos Flag named TO_ERASE 

and

a kratos variable ERASE_FLAG which is there for "historical reasons". Essentially we were using the ERASE_FLAG since the mechanism of KRATOS_FLAGS was not there.

i would propose to remove the variable so to intentionally break the code. I will take care myself of replacing the variable through the public code base, nevertheless this would most probably break private code.

The rationale behind this proposal is based on two observations

1 - the flag is faster and much more memory efficient

2 - we shall change the processes that Erase nodes/elements/conditions so that nodes mark for erasal are also removed from all the other submeshes. This can not be done without assuming that the variable ERASE_FLAG is stored in every node (which is NOT the case!!) while it would not be a problem using the mechanism of flags (since all the flags are always there on any node/element/condition).

please let me know ASAP if you have any technical concern about my proposal. If there is not any i will proceed to the change and issue a word of warning when i do the commit

cheers

Riccardo 



-- 

Riccardo Rossi

PhD, Civil Engineer

 

member of the Kratos Team: www.cimne.com/kratos

lecturer at Universitat Politècnica de Catalunya, BarcelonaTech (UPC)

Research fellow at International Center for Numerical Methods in Engineering (CIMNE)

 

C/ Gran Capità, s/n, Campus Nord UPC, Ed. C1, Despatx C9

08034 – Barcelona – Spain – www.cimne.com  - 

T.(+34) 93 401 56 96 skype: rougered4

 

 <http://www.cimne.com/> 

 <https://www.facebook.com/cimne>  <http://blog.cimne.com/>  <http://vimeo.com/cimne>  <http://www.youtube.com/user/CIMNEvideos>  <http://www.linkedin.com/company/cimne>  <https://twitter.com/cimne> 

Les dades personals contingudes en aquest missatge són tractades amb la finalitat de mantenir el contacte professional entre CIMNE i voste. Podra exercir els drets d'accés, rectificació, cancel·lació i oposició, dirigint-se a cimne en cimne.upc.edu. La utilització de la seva adreça de correu electronic per part de CIMNE queda subjecte a les disposicions de la Llei 34/2002, de Serveis de la Societat de la Informació i el Comerç Electronic.

  <https://web.cimne.upc.edu/groups/publicacions/signatura/image002.png>  Imprimiu aquest missatge, només si és estrictament necessari.

------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://listas.cimne.upc.edu/pipermail/kratos/attachments/20150611/3396a129/attachment.htm 


Más información sobre la lista de distribución Kratos