Skip to content

Commit

Permalink
fix the getNDF Python command
Browse files Browse the repository at this point in the history
  • Loading branch information
sewkokot committed Nov 2, 2021
1 parent 48a8b3a commit 550bd43
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions SRC/interpreter/OpenSeesOutputCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1582,12 +1582,12 @@ int OPS_getNDFF()
int ndf;
int numdata = 1;

if (OPS_GetNumRemainingInputArgs() > 1) {
if (OPS_GetNumRemainingInputArgs() > 0) {

int tag;

if (OPS_GetIntInput(&numdata, &tag) < 0) {
opserr << "WARNING getNDFF nodeTag? \n";
opserr << "WARNING getNDF nodeTag? \n";
return -1;
}

Expand All @@ -1605,7 +1605,6 @@ int OPS_getNDFF()
} else {

ndf = OPS_GetNDF();
return -1;

}

Expand All @@ -1619,7 +1618,6 @@ int OPS_getNDFF()
return 0;
}


int OPS_eleType()
{
if (OPS_GetNumRemainingInputArgs() < 1) {
Expand Down

0 comments on commit 550bd43

Please sign in to comment.