<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C5DBC3.C8ACA330">
<link rel=Edit-Time-Data href="cid:editdata.mso@01C5DBC3.C8ACA330">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:553679495 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
h3
        {mso-style-update:auto;
        mso-style-next:Normal;
        margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:54.0pt;
        text-align:justify;
        text-indent:-36.0pt;
        line-height:150%;
        mso-pagination:widow-orphan;
        page-break-after:avoid;
        mso-outline-level:3;
        mso-list:l0 level3 lfo1;
        tab-stops:21.55pt list 54.0pt;
        font-size:12.0pt;
        font-family:Arial;
        mso-bidi-font-family:"Times New Roman";
        mso-ansi-language:EN-GB;
        font-weight:bold;
        mso-bidi-font-weight:normal;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:378212442;
        mso-list-template-ids:-1664307320;}
@list l0:level1
        {mso-level-text:%1;
        mso-level-tab-stop:21.6pt;
        mso-level-number-position:left;
        margin-left:21.6pt;
        text-indent:-21.6pt;}
@list l0:level2
        {mso-level-text:"%1\.%2";
        mso-level-tab-stop:28.8pt;
        mso-level-number-position:left;
        margin-left:28.8pt;
        text-indent:-28.8pt;}
@list l0:level3
        {mso-level-style-link:"Heading 3";
        mso-level-text:"%1\.%2\.%3";
        mso-level-tab-stop:54.0pt;
        mso-level-number-position:left;
        margin-left:54.0pt;
        text-indent:-36.0pt;
        mso-ansi-font-size:12.0pt;
        mso-ansi-font-weight:bold;
        mso-ansi-font-style:normal;
        text-decoration:none;
        text-underline:none;}
@list l0:level4
        {mso-level-text:"%1\.%2\.%3\.%4";
        mso-level-tab-stop:43.2pt;
        mso-level-number-position:left;
        margin-left:43.2pt;
        text-indent:-43.2pt;
        text-decoration:none;
        text-underline:none;}
@list l0:level5
        {mso-level-text:"%1\.%2\.%3\.%4\.%5";
        mso-level-tab-stop:50.4pt;
        mso-level-number-position:left;
        margin-left:50.4pt;
        text-indent:-50.4pt;}
@list l0:level6
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";
        mso-level-tab-stop:57.6pt;
        mso-level-number-position:left;
        margin-left:57.6pt;
        text-indent:-57.6pt;}
@list l0:level7
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7";
        mso-level-tab-stop:64.8pt;
        mso-level-number-position:left;
        margin-left:64.8pt;
        text-indent:-64.8pt;}
@list l0:level8
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8";
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        margin-left:72.0pt;
        text-indent:-72.0pt;}
@list l0:level9
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";
        mso-level-tab-stop:79.2pt;
        mso-level-number-position:left;
        margin-left:79.2pt;
        text-indent:-79.2pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=blue style='tab-interval:36.0pt'>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi David,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I suspected it was something like that.
The problem still exists, though, if you use the “export to Fortran”
option after defining a new component’s proforma – the code
skeleton generated still has all the old function names. (This is how I noticed
the problem, not through the manual). It might be worth fixing the
export-to-fortran wizard, unless it’s already been fixed in a newer
version or update. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-Louise<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<p class=MsoAutoSig><st1:PersonName><font size=3 color=navy
 face="Times New Roman"><span style='font-size:12.0pt;color:navy;mso-no-proof:
 yes'>Louise St.Germain</span></font></st1:PersonName><font color=navy><span
style='color:navy;mso-no-proof:yes'><o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy;mso-no-proof:yes'>Graduate Research
Assistant<o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy;mso-no-proof:yes'>Integrated Energy Systems
(IESVic)<o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy;mso-no-proof:yes'>University of Victoria<o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy;mso-no-proof:yes'>lsg@uvic.ca<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> David Bradley
[mailto:bradley@tess-inc.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> October 28, 2005 1:17 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Louise St.Germain; 'TRNSYS
Newsgroup'<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [TRNSYS-users]
SET_STORAGE_VARS(STORED,NITEMS,INFO)</span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Louise, and </span></font><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Jörn,<br>
</span></font>  Just to clarify the situation, during the development of
the TRNSYS 16 beta version we used the subroutine names: SET_STORAGE_SIZE( ),
SET_STORAGE_VARS( ), and GET_STORAGE_VARS( ) but by the time the official
release was made, the subroutines were renamed: SetStorageSize( ),
SetStorageVars( ), and GetStorageVars( ). The working names for those three
subroutines might have been printed in some early documentation but with the
release of 16.00.0037 in March 2005, the 08-Programmer's Guide was updated with
the correct information.<br>
Kind regards,<br>
 david<br>
<br>
<br>
At 02:49 PM 10/28/2005, Louise St.Germain wrote:<br style='mso-special-character:
line-break'>
<![if !supportLineBreakNewLine]><br style='mso-special-character:line-break'>
<![endif]><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Hi Jörn,<br>
 <br>
I program in Fortran but had the same problem of the subroutines not
recognized.<br>
 <br>
I had to replace <br>
SET_STORAGE_VARS(STORED,NITEMS,INFO)<br>
With:<br>
           
setStorageVars(STORED,NITEMS,INFO)<br>
And it has worked. You might also run into problems with the related function
calls SET_STORAGE_SIZE(…) and GET_STORAGE_VARS(…), which I had to
change to setStorageSize(…) and getStorageVars(…) respectively.
I’m not sure if this is the same problem as you’re having with C++,
but it might be related.<br>
 <br>
Good luck,<br>
 <br>
-Louise<br>
 <br>
 <br>
</span></font><font color=navy><span style='color:navy'>Louise St.Germain<br>
Graduate Research Assistant<br>
Integrated Energy Systems (IESVic)<br>
University of Victoria<br>
lsg@uvic.ca<br>
</span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'> <br>
</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
trnsys-users-bounces@engr.wisc.edu [<a
href="mailto:trnsys-users-bounces@engr.wisc.edu" eudora=autourl>
mailto:trnsys-users-bounces@engr.wisc.edu</a>] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Jörn von Grabe<br>
<b><span style='font-weight:bold'>Sent:</span></b> October 28, 2005 7:31 AM<br>
<b><span style='font-weight:bold'>To:</span></b> TRNSYS Newsgroup<br>
<b><span style='font-weight:bold'>Subject:</span></b> [TRNSYS-users]
SET_STORAGE_VARS(STORED,NITEMS,INFO)<br>
</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Dear
all,<br>
</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>does
anyone know how to store values between timesteps in a user written type in
c++? The template looks like this<br>
</span></font><br>
<font size=2 color=green face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:green'>SET_STORAGE_VARS(STORED,NITEMS,INFO)<br>
</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'>but does't work. c++ doesn't recognise the subroutine.<br>
</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I will
appreciate any help I can get,<br>
regards, Jörn<br>
</span></font> <br>
 <br>
<img border=0 width=350 height=220 id="_x0000_i1025"
src="cid:image001.jpg@01C5DBC3.C8ACA330" alt="[]"><br>
 <br>
<br>
<br>
_______________________________________________<br>
TRNSYS-users mailing list<br>
TRNSYS-users@engr.wisc.edu<br>
<a href="https://www.cae.wisc.edu/mailman/listinfo/trnsys-users"
eudora=autourl>https://www.cae.wisc.edu/mailman/listinfo/trnsys-users</a><o:p></o:p></p>

<p style='margin-left:36.0pt'></x-sigsep><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><x-sigsep>****************************************************************************************<br>
Thermal Energy System Specialists (TESS), LLC <br>
David
BRADLEY                          
2916 Marketplace Drive - Suite 104 <br>
Partner                                       
Madison, WI 53719 <br>
Phone: (608) 274-2577 USA <br>
Fax: (608) 278-1475 <br>
E-mail: bradley@tess-inc.com <br>
Web Pages:  <a href="http://www.tess-inc.com/" eudora=autourl>http://www.tess-inc.com</a>    
and      <a href="http://www.trnsys.com/"
eudora=autourl>http://www.trnsys.com<br>
<br>
</a>"Providing software solutions for today's energy engineering
projects" <br>
****************************************************************************************<o:p></o:p></span></font></p>

</div>

</body>

</html>