%<LibSetCodeTemplateComplianceLevel(1)>
%% Create a the main file
-%if LibIsSingleRateModel() || LibIsSingleTasking()
+%if LibIsSingleTasking()
%include "rpp_srmain.tlc"
%<FcnSingleTaskingMain()>
%else
- %include "rpp_srmain.tlc"
- %<FcnSingleTaskingMain()>
+ %exit Multirate or multitasking: Multirate system has been detected, ...
+ but Auto or Multitasking mode has been selected. The multitasking is ...
+ not yet supported. Select SigleTasking in Tasking mode in model ...
+ Configuration Parameters to avoid this error. Note that the resulting ...
+ code will be running in sigle task.
+
+ %% This is prepared for future support of multitasking
+ %%include "rpp_mrmain.tlc"
+ %%<FcnMultiTaskingMain()>
%endif