<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Magali,<br>
<br>
You also need to add your input parameter on the python side, in
CitcomS/Components/BC.py.<br>
<br>
Eh<br>
<br>
<br>
On 6/23/10 6:46 AM, Magali Billen wrote:
<blockquote cite="mid:D99F7239-A368-4B2F-9A16-38BE658E2ECA@ucdavis.edu"
type="cite">Hello,
<div><br>
</div>
<div>I have a question about a parameter that can be read from the
input file in the standard version of CitcomS,</div>
<div>but is not recognized in the pyre version. I'd like to know what
changes to make so that it gets read in. </div>
<div><br>
</div>
<div>This is actually a more general question than just this one
variable, as I'd like to make some other modifications to CitcomS, which</div>
<div>require creating a few new parameters that need to get read in
and I'd like to use nested solvers, so I need to learn how to do this
for the pyre version.</div>
<div><br>
</div>
<div>Here are the details:</div>
<div>I'd like to use the variable E->convection.blob_bc_persist
which exists in the non pyre version of CitcomS:</div>
<div>
<div><br>
</div>
<div><font class="Apple-style-span" face="Courier">[java:CitcomS/CitcomS-3.1.1/lib]
billen% grep blob_bc_persist *.c</font></div>
<div><font class="Apple-style-span" face="Courier">Initial_temperature.c:
input_boolean("blob_bc_persist",&(E->convection.blob_bc_persist),"off",m);</font></div>
<div><font class="Apple-style-span" face="Courier">Initial_temperature.c:</font><span
class="Apple-tab-span" style="white-space: pre;"><font
class="Apple-style-span" face="Courier"> </font></span><font
class="Apple-style-span" face="Courier">
if(E->convection.blob_bc_persist){</font></div>
</div>
<div><br>
</div>
<div>but does not have a binding</div>
<div><br>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">[java:CitcomS/CitcomS-3.1.1/module]
billen% grep blob_bc_persist *.c</font></div>
</div>
<div><br>
</div>
<div>The other blob related variables are listed in setProperties.c</div>
<div><br>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">[java:CitcomS/CitcomS-3.1.1/module]
billen% grep blob *.c</font></div>
<div><font class="Apple-style-span" face="Courier">setProperties.c:
getFloatVectorProperty(properties, "blob_center",
E->convection.blob_center, 3, fp);</font></div>
<div><font class="Apple-style-span" face="Courier">setProperties.c:
if( E->convection.blob_center[0] == -999.0 &&
E->convection.blob_center[1] == -999.0 &&
E->convection.blob_center[2] == -999.0 ) {</font></div>
<div><font class="Apple-style-span" face="Courier">setProperties.c:
E->convection.blob_center[0] =
0.5*(E->control.theta_min+E->control.theta_max);</font></div>
<div><font class="Apple-style-span" face="Courier">setProperties.c:
E->convection.blob_center[1] =
0.5*(E->control.fi_min+E->control.fi_max);</font></div>
<div><font class="Apple-style-span" face="Courier">setProperties.c:
E->convection.blob_center[2] =
0.5*(E->sphere.ri+E->sphere.ro);</font></div>
<div><font class="Apple-style-span" face="Courier">setProperties.c:
getFloatProperty(properties, "blob_radius",
E->convection.blob_radius, fp);</font></div>
<div><font class="Apple-style-span" face="Courier">setProperties.c:
getFloatProperty(properties, "blob_dT", E->convection.blob_dT, fp);</font></div>
</div>
<div><br>
</div>
<div>So, I added the following line to setProperties.c</div>
<div><br>
</div>
<div><font class="Apple-style-span" face="Courier">getIntProperty(properties,
"blob_bc_persist", E->convection.blob_bc_persist, fp);</font></div>
<div><br>
</div>
<div>re-ran make (it did recompile/link setProperties), and then
reran my model, but I still get the following error:</div>
<div><br>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">>>
inplume1.cfg:39:</font></div>
<div><font class="Apple-style-span" face="Courier"> --
pyre.inventory(error)</font></div>
<div><font class="Apple-style-span" face="Courier"> --
regional.ic.blob_bc_persist <- '1'</font></div>
<div><font class="Apple-style-span" face="Courier"> -- unrecognized
property 'regional.ic.blob_bc_persist'</font></div>
<div><font class="Apple-style-span" face="Courier">usage: citcoms
[--<property>=<value>]
[--<facility>.<property>=<value>] [FILE.cfg] ...</font></div>
<div><font class="Apple-style-span" face="Courier">component 'CitcomS'</font></div>
<div><font class="Apple-style-span" face="Courier"> properties:
controller, help, help-components, help-persistence, help-properties,
job, launcher, nodes, sc</font></div>
<div><font class="Apple-style-span" face="Courier">heduler, solver,
steps, typos, weaver</font></div>
<div><font class="Apple-style-span" face="Courier"> facilities:
controller,job,launcher,scheduler,solver,weaver</font></div>
<div><font class="Apple-style-span" face="Courier">For more
information:</font></div>
<div><font class="Apple-style-span" face="Courier"> --help-properties:
prints details about user settable properties</font></div>
<div><font class="Apple-style-span" face="Courier"> --help-components:
prints details about user settable facilities and components</font></div>
<div><font class="Apple-style-span" face="Courier">CitcomS:
configuration error(s)</font></div>
</div>
<div><br>
</div>
<div>Can you tell me what else I have to do to make this get read in
by the Pyre version?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Magali</div>
<div><br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
CIG-MC mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CIG-MC@geodynamics.org">CIG-MC@geodynamics.org</a>
<a class="moz-txt-link-freetext" href="http://geodynamics.org/cgi-bin/mailman/listinfo/cig-mc">http://geodynamics.org/cgi-bin/mailman/listinfo/cig-mc</a>
</pre>
</blockquote>
<br>
</body>
</html>