Jeff, Mike,
Thanks you very much for the help, it was much appreciated. Sorry for the late reply, been very busy.
I was working with the JT9D_Dynamic model in 2012a, so my approach in resolving this issue involved running the whole model. It was just a matter of working through the errors. I wanted to share my experience in resolving this issue, which was pretty much a hack, similar to the one Jeff described:
1. As you mentioned, I deleted the Scalar_To_Workspace subsystem inside the block, as prompted by the initial errors.
2. Group the *.mex32 and *.c files into one folder. I copied the *.c files one level up to \TMATS_Library\MEX.
3. The next issue was the redundancy and external referencing of constants and functions in the Nozzle_TMATS.c, Compressor_TMATS.c, Turbine_TMATS.c. I copied these functions into the main source file, at the end.
Compressor_TMATS.c: added interp1Ac, interp2Ac, t2hc, sp2tc
Nozzle_TMATS.c: added pt2sc, PcalcStat
I included the constants_TMATS.h in Compressor_TMATS.c only, and removed it from the other source *.c files. This also required the definition of of the constants used in the other component source files, i.e adding "double C_GRAVITY, JOULES_CONST, C_PSItoPSF" to Nozzle_TMATS.c
4. All of these mods should result in the the error/solution described in the previous post. I did not have to remove anything in the mask initialization.
5. Model should now compile
Another note it is not enough to have TMATS_Library\MEX in the path, this needs to be the current working folder to compile.
Hope this helps,
Umer