%%============================================================================
%%File:ertmdlrefcontinuous.tlc
%%
%%Copyright1994-2019TheMathWorks,Inc.
%%============================================================================
%selectfile NULL_FILE
 
%if EXISTS("_ERT_MDLREF_CONTINUOUS_") == 0
%assign _ERT_MDLREF_CONTINUOUS_ = 1
 
%%Function:FcnModelRefCreateAndInitializeSolverData==========================
%%Abstract:
%%LinkthesubmodelintotheparentRTWSolverInfo
%%
%function FcnModelRefCreateAndInitializeSolverData() void
  %assert IsModelReferenceTarget()
  %assert LibIsContinuous(0)
 
  %openfile contBuffer
  /* Set the Timing fields to the appropriate data in the RTWSolverInfo */
  %<RTMSet("SimTimeStepPointer", "%<RTMSolverGet("SimTimeStepPtr")>")>;
  %if RTMStepSizeForTIDIsReqFcn(0)
    %<RTMSet("StepSize0", "%<RTMSolverGet("StepSize")>")>;
  %endif
  %if RTMStepSizeIsReqFcn()
    %% Currently, sample time parameterization does not support models with continuous rates.
    %assert !SLibUsingTimingServices()
    %<RTMSet("StepSize", FundamentalStepSize)>;
  %endif
  %closefile contBuffer
 
  %return contBuffer
%endfunction
 
%endif %% _ERT_MDLREF_CONTINUOUS_
 
%%[EOF]ertmdlrefcontinuous.tlc