OPS_GetNumRemainingInputArgs problem

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
Posts: 55
Joined: Wed Mar 14, 2012 6:27 pm
Location: Hanyang University

OPS_GetNumRemainingInputArgs problem

Post by mtsonicc » Fri Apr 07, 2017 4:31 am

deal all.

I have been trying to make a slight modification to Fatigue material.
But I'm facing some difficulties...

1. OPS_GetNumRemainingInputArgs()
this command is originally included in Fatigue material. but this command does not seem to work properly in custom model (*.DLL).
Compiling is successful even if i don't remove this line.
However, opensees fails to run (terminates with pop-up "Opensees.exe has stopped working").
I also added these codes below to see what happens :
int numdata = OPS_GetNumRemainingInputArgs();
opserr << "num Input : " << numdata << endln;

the printed value was "0", regardless of the length of input.

2. OPS_getUniaxialMaterial() does not seem to work either..
In Fatigue material, this command is necessary...
I tried these codes to see what happens:
UniaxialMaterial* mat = OPS_getUniaxialMaterial(idata[1]);
opserr << "mat : " << mat << endln;

the printed value was "empty".

If anyone knows how to solve this issue, please help me.

my system is:
Windows 10 64-bit
tcl 8.5 32-bit
OpenSees 2.5.0 32-bit
Visual Studio 2015


Site Admin
Posts: 5866
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley

Re: OPS_GetNumRemainingInputArgs problem

Post by fmk » Mon Apr 10, 2017 10:37 pm

you need to download the developer revision corresponding to that of the .exe.

if it fails, download all the opensees source (use the same revsion as the tag of the last release) and make your changes directly to the source

Post Reply