| 3578 | /////////////////////////////////////////////////////////////// |
| 3579 | |
| 3580 | BoundaryOp* BoundaryRelax::cloneMod(BoundaryOp * operation, |
| 3581 | const std::list<std::string>& args) { |
| 3582 | auto* result = new BoundaryRelax(operation, r); |
| 3583 | |
| 3584 | if (!args.empty()) { |
| 3585 | // First argument should be the rate |
| 3586 | BoutReal val = stringToReal(args.front()); |
| 3587 | val = fabs(val); // Should always be positive |
| 3588 | result->r = val; |
| 3589 | } |
| 3590 | |
| 3591 | return result; |
| 3592 | } |
| 3593 | |
| 3594 | void BoundaryRelax::apply(Field2D & f, BoutReal t) { |
| 3595 | // Just apply the original boundary condition to f |
no test coverage detected