<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">
      <pre style="font-family:Monospaced;font-style:normal;font-size:12.0;"><span style="color:rgb(50,185,185);">clear</span>

<span style="color:rgb(176,24,19);">function</span> <span style="color:rgb(131,67,16);font-weight:bold;">f</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);text-decoration:underline;">fiso</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(131,67,16);font-weight:bold;">var</span><span style="color:rgb(0,0,0);">, </span><span style="color:rgb(131,67,16);font-weight:bold;">intP</span><span style="color:rgb(0,0,0);">, </span><span style="color:rgb(131,67,16);font-weight:bold;">param</span><span style="color:rgb(74,85,219);">)</span>

<span style="color:rgb(0,0,0);">fiazo</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(131,67,16);font-weight:bold;">var</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">xt</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(131,67,16);font-weight:bold;">var</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">2</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">T</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(131,67,16);font-weight:bold;">var</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">3</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">I</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(131,67,16);font-weight:bold;">var</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">4</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>

<span style="color:rgb(0,0,0);">nu</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(131,67,16);font-weight:bold;">intP</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">chi</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(0,0,0);">;</span>

<span style="color:rgb(0,0,0);">rp</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">razo</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(131,67,16);font-weight:bold;">param</span><span style="color:rgb(0,0,0);">;</span>
  
  <span style="color:rgb(131,67,16);font-weight:bold;">f</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(0,0,0);">fiazo</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(0,0,0);">xt</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(0,0,0);">razo</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(50,185,185);">log</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">fiazo</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(0,0,0);">xt</span><span style="color:rgb(74,85,219);">)</span> <span style="color:rgb(92,92,92);">+</span> <span style="color:rgb(0,0,0);">fiazo</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(0,0,0);">xt</span><span style="color:rgb(74,85,219);">)</span><span style="color:
rgb(92,92,92);">/</span><span style="color:rgb(0,0,0);">razo</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(50,185,185);">log</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">fiazo</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(0,0,0);">xt</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span> <span style="color:rgb(92,92,92);">+</span> <span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(0,0,0);">fiazo</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(0,0,0);">rp</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(50,185,185);">log</span><span st
yle="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(0,0,0);">fiazo</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">+</span> <span style="color:rgb(0,0,0);">chi</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(0,0,0);">fiazo</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(0,0,0);">fiazo</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span> 

<span style="color:rgb(176,24,19);">endfunction</span>

<span style="color:rgb(176,24,19);">function</span> <span style="color:rgb(131,67,16);font-weight:bold;">f</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);text-decoration:underline;">ftot</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(131,67,16);font-weight:bold;">xt</span><span style="color:rgb(0,0,0);">, </span><span style="color:rgb(131,67,16);font-weight:bold;">p</span><span style="color:rgb(0,0,0);">, </span><span style="color:rgb(131,67,16);font-weight:bold;">intP</span><span style="color:rgb(0,0,0);">, </span><span style="color:rgb(131,67,16);font-weight:bold;">param</span><span style="color:rgb(74,85,219);">)</span>
    <span style="color:rgb(0,0,0);">var</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(74,85,219);">[</span><span style="color:rgb(131,67,16);font-weight:bold;">p</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(74,85,219);">)</span> <span style="color:rgb(131,67,16);font-weight:bold;">xt</span> <span style="color:rgb(131,67,16);font-weight:bold;">p</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">2</span><span style="color:rgb(74,85,219);">)</span> <span style="color:rgb(131,67,16);font-weight:bold;">p</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">3</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(0,0,0);">;</span>
    <span style="color:rgb(131,67,16);font-weight:bold;">f</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(0,0,0);text-decoration:underline;">fiso</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">var</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(131,67,16);font-weight:bold;">intP</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(131,67,16);font-weight:bold;">param</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>

<span style="color:rgb(176,24,19);">endfunction</span>

<span style="color:rgb(50,185,185);">save</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">ejem.sav</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(74,85,219);">)</span>
 
<span style="color:rgb(50,185,185);">load</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">ejem.sav</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(74,85,219);">)
</span>
The error message is:
Incompatible output argument
at line       3 of function ftot called by :  
at line      14 of function createMacro called by :  
at line       8 of function %__convertVariable__ called by :  
at line     855 of function %_sodload called by :  
load("ejem.sav")
</pre>
      But, doing the same without the variables intP, param, this is,
      defining  the function fiso as fiso(var), and given some value to
      intP and param within the function... works fine! <br>
      Any help will be appreciated.<br>
      <br>
      <br>
      El 03/08/2013 08:34 a.m., Mathieu Dubois escribió:<br>
    </div>
    <blockquote cite="mid:51FCEAC2.9020102@limsi.fr" type="cite">Could
      you send a simple example which creates a simple environement that
      shows the problem when saved and restored?
      <br>
      <br>
      Mathieu
      <br>
      <br>
      Le 31/07/2013 14:51, Ezequiel Soule a écrit :
      <br>
      <blockquote type="cite">Hello, I keep having this problem, when I
        try to load a saved
        <br>
        ennironments, I get an error "incompatible output arguments" in
        some
        <br>
        function of the environment, and it doesn´t load anything. The
        function
        <br>
        that gives the error works fine, and I don´t get any error when
        I
        <br>
        execute or call the function, just when loading the environment.
        It is
        <br>
        not one particular function, it happened many times, with
        different
        <br>
        environements and different functions. I can load some of the
        variables
        <br>
        if I specifiy then, but I can´t load the whole thing.
        <br>
        This happens wiht versions 5.4.0 and 5.4.1, I haven´t try older
        versions.
        <br>
        <br>
        Any ideas?
        <br>
        _______________________________________________
        <br>
        users mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
        <br>
        <a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
        <br>
      </blockquote>
      _______________________________________________
      <br>
      users mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
      <br>
    </blockquote>
    <br>
  </body>
</html>