MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / cloneMod

Method cloneMod

src/mesh/boundary_standard.cxx:3580–3592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

createMethod · 0.80

Calls 2

stringToRealFunction · 0.85
stringToIntFunction · 0.85

Tested by

no test coverage detected