16#include <ICoCoTrioFieldUtil.h>
18#include <ICoCoField.h>
23using ICoCo::TrioField;
29void ajoute_field(ICoCo::TrioField& a ,
const ICoCo::TrioField& OtherField)
33 compat &= (a._type==OtherField._type);
34 compat &= (a._mesh_dim==OtherField._mesh_dim);
35 compat &= (a._space_dim==OtherField._space_dim);
36 compat &= (a._nbnodes==OtherField._nbnodes);
37 compat &= (a._nodes_per_elem==OtherField._nodes_per_elem);
38 compat &= (a._nb_elems==OtherField._nb_elems);
39 compat &= (a._itnumber==OtherField._itnumber);
40 compat &= (a._time1==OtherField._time1);
41 compat &= (a._time2==OtherField._time2);
42 compat &= (a.nb_values()==OtherField.nb_values());
43 compat &= (a._nb_field_components==OtherField._nb_field_components);
47 for (
int i=0; i<a.nb_values()*a._nb_field_components; i++)
48 a._field[i]+=OtherField._field[i];