tychoGUI  1.0
 All Data Structures Namespaces Files Functions Variables
boundary_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 
12 QString MainWindow::boundary_selector(QString boundary){
13 
14  QString number;
15 
16  if (boundary=="zero gradient") number = "0";
17  if (boundary=="reflecting") number = "1";
18  if (boundary=="small padding") number = "2";
19  if (boundary=="outflow") number = "3";
20  if (boundary=="inflow") number = "4";
21  if (boundary=="periodic") number = "5";
22 
23  return number;
24 }