| 7580 | } |
| 7581 | |
| 7582 | shared_ptr<CompiledCoefficientFunctionInterface> Compile (shared_ptr<CoefficientFunction> c, bool realcompile, int maxderiv, bool wait, bool keep_files) |
| 7583 | { |
| 7584 | auto compiledcf = dynamic_pointer_cast<CompiledCoefficientFunction>(c); |
| 7585 | auto cf = compiledcf ? compiledcf : make_shared<CompiledCoefficientFunction> (c); |
| 7586 | if(realcompile) |
| 7587 | cf->RealCompile(maxderiv, wait, keep_files); |
| 7588 | return cf; |
| 7589 | } |
| 7590 | |
| 7591 | class LoggingCoefficientFunction : public T_CoefficientFunction<LoggingCoefficientFunction> |
| 7592 | { |