Changeset - 0c49e452410f
[Not reviewed]
default
0 2 0
Roeland Merks - 15 years ago 2010-05-26 16:24:52
roeland.merks@cwi.nl
After default initialization two polygons were constructed. Corrected.
2 files changed with 12 insertions and 11 deletions:
0 comments (0 inline, 0 general)
src/VirtualLeaf.cpp
Show inline comments
 
@@ -507,7 +507,8 @@ int main(int argc,char **argv) {
 
    if (useGUI)
 
      model_catalogue.PopulateModelMenu();
 
    model_catalogue.InstallFirstModel();
 
	  
 
    
 
    mesh.Clean();
 
    main_window->Init(leaffile);
 
	  
 
    Cell::SetMagnification(1);
src/modelcatalogue.cpp
Show inline comments
 
@@ -145,17 +145,17 @@ void ModelCatalogue::InstallModel(QActio
 

	
 
void ModelCatalogue::InstallModel(SimPluginInterface *plugin) {
 
	
 
	// make sure both main and plugin use the same static datamembers (ncells, nchems...)
 
	plugin->SetCellsStaticDatamembers(CellBase::GetStaticDataMemberPointer());
 
  // make sure both main and plugin use the same static datamembers (ncells, nchems...)
 
  plugin->SetCellsStaticDatamembers(CellBase::GetStaticDataMemberPointer());
 
	
 
	mesh->SetSimPlugin(plugin);
 
	Cell::SetNChem(plugin->NChem());
 
	plugin->SetParameters(&par);
 
  mesh->SetSimPlugin(plugin);
 
  Cell::SetNChem(plugin->NChem());
 
  plugin->SetParameters(&par);
 

	
 
	if (mainwin) {
 
		mainwin->RefreshInfoBar();
 
		mainwin->Init(0);
 
	}
 
	//	mesh->StandardInit();
 
  if (mainwin) {
 
    mainwin->RefreshInfoBar();
 
    mainwin->Init(0);
 
  }
 
  //	mesh->StandardInit();
 
	
 
}
0 comments (0 inline, 0 general)