Dear Wen,

The method result_size control the size of the arguments at compile time and 
gives the size of the result.
"const arg_list &args" is the argument list and "bgeot::multi_index sizes" have 
to contain the size of the result

You can see several examples at the end of 
getfem/src/getfem_nonlinear_elasticity.cc and in 
getfem/src/getfem_generic_assembly.cc.

For the moment, the only way to add a new nonlinear operator is the way used at 
the end of getfem/src/getfem_nonlinear_elasticity.cc but may be I will add a 
more user friendly function.

Yves.


----- Original Message -----
From: "Wen Jiang" <[email protected]>
To: [email protected]
Sent: Friday, April 11, 2014 5:52:03 AM
Subject: [Getfem-users] new non linear operator in high-level assembly .




Dear all, 


Could anyone tell me how to define new nonlinear operators in high-level 
assembly? 


what does this function do? 
bool result_size( const arg_list &args, bgeot::multi_index &sizes) 



and what do those two parameters in this function mean? 


Thanks. 


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

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

Reply via email to