RELSUB

ModelingUsed to reload user data written using SAVSUB.

Use

Reload user-defined data using the Load_Model command.

<Load_Model
model_file    = "save1.xml"
result_file   = "output.mrf"
anima_file    = "output.h3d"/>

Format

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

Not Supported

MATLAB Calling Syntax

Not Supported

Attributes

IUNIT
[integer]
Specifies the file that will be opened by RELSUB.

Output Values

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

Example

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

Comments

1. MotionSolve calls the RELSUB subroutine when it encounters the Load_Model 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.