In a C++ version of a DLL code, I am trying to store some packages of property parameters as a linked list using the “Struct Node” concept. However, I only see iflag value either 3 or 0 when I print it. Is there any reason that I do not see iflag = 1?
In a C++ version of a DLL code for an Adams model, I am trying to store some packages of property parameters as a linked list using the “Struct Node” concept, in such a way that each node to be devoted to one package of input parameter.
To do so, it is required to move to the *next node for storing any new package of input values. This needs me to know when the iflag equals 1 under the GSE_DERIVE function!
However, I only see iflag value either 3 or 0 when I print it. Is there any reason that I do not see iflag = 1 at all under GSE_DERIV?
Please see below the execution results of this part of the code:
void Gse_deriv(const struct sAdamsGSE* gse, double time, int dflag, int iflag, int ns, double* XDot)
The iflag=1 call is way before this in the solver run. It is the first thing the solver does, and it is only done once for each subroutine.
You should probably not rely on multiple calls to your subroutine to store parameters. If you change your model and thereby the number of dependencies connected to the element using the subroutine, the number of iflag=3 calls may vary.
The iflag=1 call is way before this in the solver run. It is the first thing the solver does, and it is only done once for each subroutine.
You should probably not rely on multiple calls to your subroutine to store parameters. If you change your model and thereby the number of dependencies connected to the element using the subroutine, the number of iflag=3 calls may vary.