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

Method BFGS

SRC/analysis/algorithm/equiSolnAlgo/BFGS.cpp:71–99  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

69
70// Constructor
71BFGS::BFGS(int theTangentToUse, int n )
72:EquiSolnAlgo(EquiALGORITHM_TAGS_BFGS),
73 tangent(theTangentToUse), numberLoops(n)
74{
75
76 theTest = 0;
77 localTest = 0;
78
79 s = new Vector*[numberLoops+3];
80 z = new Vector*[numberLoops+3];
81
82 // r = new (Vector*)[numberLoops+3];
83 residOld = 0;
84 residNew = 0;
85 du = 0;
86 b = 0;
87
88 temp = 0;
89
90 rdotz = 0;
91 sdotr = 0;
92
93 for ( int i =0; i < numberLoops+3; i++ ) {
94 s[i] = 0;
95 z[i] = 0;
96 }
97
98 localTest = 0;
99}
100
101//Constructor
102BFGS::BFGS(ConvergenceTest &theT, int theTangentToUse, int n)

Callers

nothing calls this directly

Calls 1

getCopyMethod · 0.45

Tested by

no test coverage detected