Klaus R. Mueller (KlausR.Mueller++at++munich.netsurf.de)
Tue, 01 Jun 1999 16:43:35 +0100
I have a question on combining simulation software and sight
generation with performer.
The simulation runs OK on different Systems. But now I hope for
hints on why a simulation code could produce different results
just because a simulation object is created on different places
in the code.
In the following code I marked three places (1), (2) and (3) where
I had the simulation object being created. The code runs OK for
place (1) but produces strange results when calling pfInit first.
The code also indicates that I used different parameters for
pfMultiprocess. I also tried having the pointer to the simulation
object (fzg_1) in a shared arena- without success.
I try to give more details: I use
- Performer 2.0,
- an O2 running
- Irix 6.3.
Please reply also directly to the address:
KlausR.Mueller++at++munich.netsurf.de
Thanks, Ehrenfried
____________________________________________
#include <stdlib.h>
#include <stdio.h>
#include <Performer/pf.h>
#include <Performer/pr.h>
#include "fzg_simulation.h"
void fsim_print_output(Fzg_Simulation *fzg);
////////////////////////////////////////////////////////////////////
void main(int argc, char *argv[])
{
Fzg_Simulation *fzg_1;
//create simulation object (1)
//fzg_1 = new Fzg_Simulation("dyn.dat", "./AntDat/", "antrieb");
pfInit();
//create simulation object (2)
//fzg_1 = new Fzg_Simulation("dyn.dat", "./AntDat/", "antrieb");
//pfMultiprocess(PFMP_APPCULLDRAW);
pfMultiprocess(PFMP_DEFAULT);
pfConfig();
//create simulation object (3)
fzg_1 = new Fzg_Simulation("dyn.dat", "./AntDat/", "antrieb");
/*--- set simulation parameters ---*/
fzg_1->setFzgPosition( ...);
...
/*--- run simulation ----*/
fzg_1->Zeitschritt();
/*--- print simulation results ----*/
fsim_print_output(fzg_1);
}
___________________________________________________________
-- ======================================== Mueller Systemtechnik GmbH Oskar-von-Miller-Ring 29 80333 Muenchen, Germanyphone: +49-8928659081 fax: +49-8928659082
email: KlausR.Mueller++at++munich.netsurf.de ========================================
This archive was generated by hypermail 2.0b2 on Tue Jun 08 1999 - 07:45:14 PDT