Div ne marche pas

________________________________

De : [email protected] 
[mailto:[email protected]] De la part de HADJ AMOR HASSEN
Envoyé : mardi 7 septembre 2010 17:08
À : Mail-OpenModelica
Objet : Pre() Bug


Hi,

This model turns correctly under Dymola and not under OpenModelica



model PreBug 

Integer x(start=4,fixed=true); 

equation 

if time >0.1 and pre(x)== 10 then 

x=pre(x)-1; 

else 

x=4; 

end if; 

end PreBug; 





Note that if we change the if condition by (if time >0.1 and pre(x)== 4) the 
simulation will stop at time =0.1 under Dymola. This is du to the restart 
condition.




It is clear that the condition pre(x)==10 is never crossed.. but this haven't 
to stop generating C code by the compiler.




This is the error message generated:




g++ -I"C:\OpenModelica1.5.0\/include/omc" -msse2 -mfpmath=sse  -I. -o 
PreBug.exe PreBug.cpp -L"D:/omcSpecial/PortageWiebe"  -lsim 
-L"C:\OpenModelica1.5.0\/lib/omc" -lc_runtime -lf2c -linteractive -lsendData 
-lQtNetwork-mingw -lQtCore-mingw -lQtGui-mingw -luuid -lole32 -lws2_32 
PreBug.cpp: In function `int function_updateDependents()':
PreBug.cpp:563: error: no matching function for call to `pre(double)'
C:/OpenModelica1.5.0//include/omc/simulation_events.h:59: note: candidates are: 
double pre(double&)
C:/OpenModelica1.5.0//include/omc/simulation_events.h:60: note:                 
char* pre(char*&)
PreBug.cpp: In function `int function_updateDepend()':
PreBug.cpp:596: error: no matching function for call to `pre(double)'
C:/OpenModelica1.5.0//include/omc/simulation_events.h:59: note: candidates are: 
double pre(double&)
C:/OpenModelica1.5.0//include/omc/simulation_events.h:60: note:                 
char* pre(char*&)
mingw32-make: *** [PreBug] Error 1





Any idea? Thank you!!




Regards,

Hassen



__________________________
Ce message (et toutes ses pièces jointes éventuelles) est confidentiel et 
établi à l'intention exclusive de ses destinataires. Toute utilisation de ce 
message non conforme à sa destination, toute diffusion ou toute publication, 
totale ou partielle, est interdite, sauf autorisation expresse. IFP Energies 
nouvelles décline toute responsabilité au titre de ce message.

This message and any attachments (the message) are confidential and intended 
solely for the addressees. Any unauthorised use or dissemination is prohibited. 
IFP Energies nouvelles should not be liable for this message.

L'IFP change de nom et devient IFP Energies nouvelles. Son adresse de 
messagerie change aussi : [email protected] 

IFP is changing its name to IFP Energies nouvelles. Its email address is 
changing too: [email protected]

Visitez notre site Web / Visit our web site : www.ifpenergiesnouvelles.fr

__________________________
  • Pre() Bug HADJ AMOR HASSEN
    • RE: Pre() Bug SAAFI Houssem

Reply via email to