SAVSUB

ModelingSAVSUB saves user-data written data to be loaded using RELSUB.

Use

Save user-defined data using the SAVE command:

<Save model_file = "saved_model.xml"/>

Format

Fortran Calling Syntax
SUBROUTINE SAVSUB (IUNIT, IERR)
C/C++ Calling Syntax
void STDCALL SAVSUB (int *iunit, int *errflg)
Python Calling Syntax

Not Supported

MATLAB Calling Syntax

Not Supported

Attributes

IUNIT
[integer]
Specifies the file that will be written using SAVSUB.

Output

IERR
[integer]
The error flag, which is set to true in case of an error writing user-data. The error message is sent both to the screen and the message file.

Example

For an example of SAVSUB, please refer to [install_path]\hwsolvers\motionsolve\usersub\.

Comments

  1. MotionSolve calls the SAVSUB subroutine when it encounters the SAVE command.
  2. IUNIT is automatically generated by MotionSolve. The data written to IUNIT is encoded into the XML file itself, rather than being saved into a separate file. This helps avoid handling extra files.