| 502 | } |
| 503 | |
| 504 | shared_ptr<CoefficientFunction> |
| 505 | GridFunction :: Operator (shared_ptr<DifferentialOperator> diffop) const |
| 506 | { |
| 507 | shared_ptr<GridFunctionCoefficientFunction> coef; |
| 508 | auto self = dynamic_pointer_cast<GridFunction> (const_cast<GridFunction*>(this)->shared_from_this()); |
| 509 | |
| 510 | switch (diffop->VB()) |
| 511 | { |
| 512 | case VOL: |
| 513 | coef = make_shared<GridFunctionCoefficientFunction> (self, diffop); |
| 514 | break; |
| 515 | case BND: |
| 516 | coef = make_shared<GridFunctionCoefficientFunction> (self, nullptr,diffop); |
| 517 | break; |
| 518 | case BBND: |
| 519 | coef = make_shared<GridFunctionCoefficientFunction> (self, nullptr,nullptr,diffop); |
| 520 | break; |
| 521 | case BBBND: |
| 522 | throw Exception ("there are no Operators with BBBND"); |
| 523 | } |
| 524 | coef->SetDimensions(diffop->Dimensions()); |
| 525 | coef->generated_from_operator = name; |
| 526 | return coef; |
| 527 | } |
| 528 | |
| 529 | shared_ptr<CoefficientFunction> |
| 530 | GridFunction :: Operator (const string& name) const |
nothing calls this directly
no test coverage detected