+ SALOMEDS::StudyManager_var studyManager = KERNEL::getStudyManager();
+
+ #ifndef ALLOW_MULTI_STUDIES
+ SALOMEDS::ListOfOpenStudies_var _list_open_studies = studyManager->GetOpenStudies();
+ for (unsigned int ind = 0; ind < _list_open_studies->length();ind++)
+ {
+ LOG("Close study : " << _list_open_studies[ind]);
+ SALOMEDS::Study_var study = studyManager->GetStudyByName(_list_open_studies[0]);
+ if(study)
+ studyManager->Close(study);
+ }
+ #endif
+
+ SALOMEDS::Study_ptr myTestStudy = studyManager->NewStudy("kerneltest");