22{
23
24 QSurfaceFormat::setDefaultFormat(QVTKOpenGLNativeWidget::defaultFormat());
25
26 auto myOutputWindow = vtkSmartPointer<VtkConsoleOutputWindow>::New();
27 vtkOutputWindow::SetInstance(myOutputWindow);
28
29 QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
30 QApplication a(argc, argv);
31 QApplication::setApplicationName("OpenGeoSys - Data Explorer");
32 QApplication::setApplicationVersion(
34 QApplication::setOrganizationName("OpenGeoSys Community");
35 QApplication::setOrganizationDomain("opengeosys.org");
36 setlocale(LC_NUMERIC, "C");
37 QLocale::setDefault(QLocale::German);
38 auto w = std::make_unique<MainWindow>();
39 w->setWindowTitle(w->windowTitle() + " - " +
41 if (QCoreApplication::arguments().
size() > 1)
42 {
43 w->loadFileOnStartUp(QCoreApplication::arguments().at(1));
44 }
45 w->show();
46 int returncode = QApplication::exec();
47
48 return returncode;
49}
GITINFOLIB_EXPORT const std::string ogs_version
constexpr int size(int const displacement_dim)
Vectorized tensor size for given displacement dimension.