| 1 | /*!abstract base class that serves as an argument for the mesh_traverse function and initializes |
| 2 | elfunc via calling elfunc::set_at_el( el_info, nil), then doing a calculation on the whole element |
| 3 | during mesh traversal.*/ |
| 4 | class do_elfunc_on_el : public do_on_el, public elfunc |
| 5 | { |
| 6 | public: |
| 7 | void el_fct(const EL_INFO *el_info) |
| 8 | { set_at_el( el_info, 0); |
| 9 | /* !eval_time has to be determined by derived class.*/ |
| 10 | calc(el_info); |
| 11 | } |
| 12 | /*!calls set_at_el and calc of derived class*/ |
| 13 | protected: |
| 14 | virtual REAL calc( const int iq)=0; |
| 15 | virtual int calc(const EL_INFO *el_info)=0; |
| 16 | //fuer Dinge, die auf dem ganzen Element zu erledigen sind (die meisten) |
| 17 | }; |
| 18 | |
| 19 |