MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / OPS_CTestFixedNumIter

Function OPS_CTestFixedNumIter

SRC/convergenceTest/CTestFixedNumIter.cpp:42–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40#include <elementAPI.h>
41
42void* OPS_CTestFixedNumIter()
43{
44 if (OPS_GetNumRemainingInputArgs() < 1) {
45 opserr << "insufficient number of arguments\n";
46 return 0;
47 }
48
49 // maxIter
50 int numData = OPS_GetNumRemainingInputArgs();
51 if (numData > 3) numData = 3;
52 int data[3] = { 0,0,2 };
53 if (OPS_GetIntInput(&numData, &data[0]) < 0) {
54 opserr << "WARNING FixedNumIter failed to read int values\n";
55 return 0;
56 }
57
58 return new CTestFixedNumIter(data[0], data[1], data[2]);
59}
60
61
62CTestFixedNumIter::CTestFixedNumIter()

Callers 1

OPS_CTestFunction · 0.85

Calls 2

OPS_GetIntInputFunction · 0.50

Tested by

no test coverage detected