| 3777 | // Sensitivity:BEGIN ///////////////////////////////////////////// |
| 3778 | |
| 3779 | int OPS_computeGradients() |
| 3780 | { |
| 3781 | Integrator* theIntegrator = 0; |
| 3782 | if(cmds->getStaticIntegrator() != 0) { |
| 3783 | theIntegrator = cmds->getStaticIntegrator(); |
| 3784 | } else if(cmds->getTransientIntegrator() != 0) { |
| 3785 | theIntegrator = cmds->getTransientIntegrator(); |
| 3786 | } |
| 3787 | |
| 3788 | if (theIntegrator == 0) { |
| 3789 | opserr << "WARNING: No integrator is created\n"; |
| 3790 | return -1; |
| 3791 | } |
| 3792 | |
| 3793 | if (theIntegrator->computeSensitivities() < 0) { |
| 3794 | opserr << "WARNING: failed to compute sensitivities\n"; |
| 3795 | return -1; |
| 3796 | } |
| 3797 | |
| 3798 | return 0; |
| 3799 | } |
| 3800 | |
| 3801 | int OPS_sensitivityAlgorithm() |
| 3802 | { |
no test coverage detected