tychoGUI  1.0
 All Data Structures Namespaces Files Functions Variables
ic_selector.cpp
Go to the documentation of this file.
1 #include "mainwindow.h"
2 #include "ui_mainwindow.h"
3 #include <QFileDialog>
4 #include <QFile>
5 #include <QTextStream>
6 #include <QString>
7 
8 
13 QString MainWindow::ic_selector(QString ic){
14 
15  QString number;
16 
17  if (ic=="TYCHO generated") number = "0";
18  if (ic=="Read ICs in TYCHO file-format") number = "1";
19  if (ic=="Only obstacle distribution") number = "2";
20  if (ic=="A Sod Shock Tube") number = "3";
21  if (ic=="Kelvin Helmholtz instability") number = "4";
22 
23  return number;
24 }
25