Changeset - 401251dc8013
[Not reviewed]
default
0 1 0
Roeland Merks - 15 years ago 2010-05-26 11:53:45
roeland.merks@cwi.nl
Corrected problem with "testmodel": the standard initial condition (a polygon) was no longer constructed.

user: Roeland Merks <roeland.merks@cwi.nl>
branch 'default'
changed src/modelcatalogue.cpp
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/modelcatalogue.cpp
Show inline comments
 
@@ -133,29 +133,29 @@ void ModelCatalogue::PopulateModelMenu()
 
		
 
	}
 
	connect(mainwin->modelmenu, SIGNAL(triggered(QAction *)), this, SLOT(InstallModel(QAction *)) );
 
}	
 

	
 
void ModelCatalogue::InstallModel(QAction *modelaction) {
 
	QVariant data = modelaction->data();
 
	SimPluginInterface *model = data.value<SimPluginInterface *>();
 
	cerr << "You chose model " << model->ModelID().toStdString() << "!\n";
 
	mesh->Clean();
 
	InstallModel(model);
 
}
 

	
 
void ModelCatalogue::InstallModel(SimPluginInterface *plugin) {
 
	
 
	// 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);
 

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