forked from equinor/ert
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://ert.nr.no/repos/ert@4119 ecb61f28-d21e-0410-a4b6-a828cfe0ca3a
- Loading branch information
myrseth
committed
Oct 17, 2012
1 parent
0824223
commit f0be037
Showing
11 changed files
with
263 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
/* | ||
Copyright (C) 2012 Statoil ASA, Norway. | ||
The file 'enkf_tui_QC.c' is part of ERT - Ensemble based Reservoir Tool. | ||
ERT is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
ERT is distributed in the hope that it will be useful, but WITHOUT ANY | ||
WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
FITNESS FOR A PARTICULAR PURPOSE. | ||
See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html> | ||
for more details. | ||
*/ | ||
#include <stdlib.h> | ||
#include <stdbool.h> | ||
#include <stdio.h> | ||
#include <string.h> | ||
#include <util.h> | ||
#include <ctype.h> | ||
#include <menu.h> | ||
#include <enkf_tui_run.h> | ||
#include <enkf_tui_export.h> | ||
#include <enkf_tui_plot.h> | ||
#include <enkf_tui_table.h> | ||
#include <enkf_tui_fs.h> | ||
#include <enkf_tui_ranking.h> | ||
#include <enkf_tui_QC.h> | ||
#include <enkf_tui_help.h> | ||
#include <enkf_tui_misc.h> | ||
#include <enkf_main.h> | ||
#include <enkf_sched.h> | ||
|
||
|
||
void enkf_tui_help_manual_main( void * arg) { | ||
system("firefox http://ert.nr.no/index.php/User_Manual &"); | ||
} | ||
|
||
void enkf_tui_help_menu_main(void * arg) { | ||
|
||
enkf_main_type * enkf_main = enkf_main_safe_cast( arg ); | ||
plot_config_type * plot_config = enkf_main_get_plot_config( enkf_main ); | ||
{ | ||
const char * plot_path = plot_config_get_path( plot_config ); | ||
util_make_path( plot_path ); | ||
} | ||
|
||
{ | ||
menu_type * menu = menu_alloc("Help: Main menu" , "Back" , "bB"); | ||
menu_add_helptext(menu , "Choose the different options from the main menu to read more about the different options."); | ||
menu_add_item(menu , "Open manual (firefox)" , "mM" , enkf_tui_help_manual_main , enkf_main , NULL); | ||
menu_run(menu); | ||
menu_free(menu); | ||
} | ||
} | ||
|
||
void enkf_tui_help_manual_cases( void * arg) { | ||
system("firefox http://ert.nr.no/index.php/User_Manual#Manage_cases &"); | ||
} | ||
|
||
void enkf_tui_help_menu_cases(void * arg) { | ||
|
||
enkf_main_type * enkf_main = enkf_main_safe_cast( arg ); | ||
plot_config_type * plot_config = enkf_main_get_plot_config( enkf_main ); | ||
{ | ||
const char * plot_path = plot_config_get_path( plot_config ); | ||
util_make_path( plot_path ); | ||
} | ||
|
||
{ | ||
menu_type * menu = menu_alloc("Help: Manage cases" , "Back" , "bB"); | ||
menu_add_helptext(menu , "Use this menu to navgate between cases and to initialize cases. A case has to be initialized before it can be used."); | ||
menu_add_item(menu , "Open manual (firefox)" , "mM" , enkf_tui_help_manual_cases , enkf_main , NULL); | ||
menu_run(menu); | ||
menu_free(menu); | ||
} | ||
} | ||
|
||
void enkf_tui_help_manual_run( void * arg) { | ||
system("firefox http://ert.nr.no/index.php/User_Manual#Run_or_restart_experiment &"); | ||
} | ||
|
||
void enkf_tui_help_menu_run(void * arg) { | ||
|
||
enkf_main_type * enkf_main = enkf_main_safe_cast( arg ); | ||
plot_config_type * plot_config = enkf_main_get_plot_config( enkf_main ); | ||
{ | ||
const char * plot_path = plot_config_get_path( plot_config ); | ||
util_make_path( plot_path ); | ||
} | ||
|
||
{ | ||
menu_type * menu = menu_alloc("Help: Run menu" , "Back" , "bB"); | ||
menu_add_helptext(menu , "This menu is used to do the main work in ERT. The first option, x: Ensemble run: history, will just run the case without any data conditioning. Options r and s will initiate classical enkf runs. The two options i and t invokes the ensemble kalman smoother."); | ||
menu_add_item(menu , "Open manual (firefox)" , "mM" , enkf_tui_help_manual_run , enkf_main , NULL); | ||
menu_run(menu); | ||
menu_free(menu); | ||
} | ||
} | ||
|
||
void enkf_tui_help_manual_plot( void * arg) { | ||
system("firefox http://ert.nr.no/index.php/User_Manual#Plot_Results &"); | ||
} | ||
|
||
void enkf_tui_help_menu_plot(void * arg) { | ||
|
||
enkf_main_type * enkf_main = enkf_main_safe_cast( arg ); | ||
plot_config_type * plot_config = enkf_main_get_plot_config( enkf_main ); | ||
{ | ||
const char * plot_path = plot_config_get_path( plot_config ); | ||
util_make_path( plot_path ); | ||
} | ||
|
||
{ | ||
menu_type * menu = menu_alloc("Help: Plot results" , "Back" , "bB"); | ||
menu_add_helptext(menu , "Use this option to plot results after the case has been run."); | ||
menu_add_item(menu , "Open manual (firefox)" , "mM" , enkf_tui_help_manual_plot , enkf_main , NULL); | ||
menu_run(menu); | ||
menu_free(menu); | ||
} | ||
} | ||
|
||
void enkf_tui_help_manual_rank( void * arg) { | ||
system("firefox http://ert.nr.no/index.php/User_Manual#Rank_Results &"); | ||
} | ||
|
||
void enkf_tui_help_menu_rank(void * arg) { | ||
|
||
enkf_main_type * enkf_main = enkf_main_safe_cast( arg ); | ||
plot_config_type * plot_config = enkf_main_get_plot_config( enkf_main ); | ||
{ | ||
const char * plot_path = plot_config_get_path( plot_config ); | ||
util_make_path( plot_path ); | ||
} | ||
|
||
{ | ||
menu_type * menu = menu_alloc("Help: Rank results" , "Back" , "bB"); | ||
menu_add_helptext(menu , "Use this option to rank results after the case has been run."); | ||
menu_add_item(menu , "Open manual (firefox)" , "mM" , enkf_tui_help_manual_rank , enkf_main , NULL); | ||
menu_run(menu); | ||
menu_free(menu); | ||
} | ||
} | ||
|
||
void enkf_tui_help_manual_export( void * arg) { | ||
system("firefox http://ert.nr.no/index.php/User_Manual#Export_data_to_other_formats &"); | ||
} | ||
|
||
void enkf_tui_help_menu_export(void * arg) { | ||
|
||
enkf_main_type * enkf_main = enkf_main_safe_cast( arg ); | ||
plot_config_type * plot_config = enkf_main_get_plot_config( enkf_main ); | ||
{ | ||
const char * plot_path = plot_config_get_path( plot_config ); | ||
util_make_path( plot_path ); | ||
} | ||
|
||
{ | ||
menu_type * menu = menu_alloc("Help: Export results" , "Back" , "bB"); | ||
menu_add_helptext(menu , "Use this option to export results after the case has been run."); | ||
menu_add_item(menu , "Open manual (firefox)" , "mM" , enkf_tui_help_manual_export , enkf_main , NULL); | ||
menu_run(menu); | ||
menu_free(menu); | ||
} | ||
} | ||
|
||
void enkf_tui_help_manual_table( void * arg) { | ||
system("firefox http://ert.nr.no/index.php/User_Manual#Table_of_results &"); | ||
} | ||
|
||
void enkf_tui_help_menu_table(void * arg) { | ||
|
||
enkf_main_type * enkf_main = enkf_main_safe_cast( arg ); | ||
plot_config_type * plot_config = enkf_main_get_plot_config( enkf_main ); | ||
{ | ||
const char * plot_path = plot_config_get_path( plot_config ); | ||
util_make_path( plot_path ); | ||
} | ||
|
||
{ | ||
menu_type * menu = menu_alloc("Help: Table of results" , "Back" , "bB"); | ||
menu_add_helptext(menu , "This option can generate a table of results after the case has been run."); | ||
menu_add_item(menu , "Open manual (firefox)" , "mM" , enkf_tui_help_manual_table , enkf_main , NULL); | ||
menu_run(menu); | ||
menu_free(menu); | ||
} | ||
} | ||
|
||
void enkf_tui_help_manual_misc( void * arg) { | ||
system("firefox http://ert.nr.no/index.php/User_Manual#Table_of_results &"); | ||
} | ||
|
||
void enkf_tui_help_menu_misc(void * arg) { | ||
|
||
enkf_main_type * enkf_main = enkf_main_safe_cast( arg ); | ||
plot_config_type * plot_config = enkf_main_get_plot_config( enkf_main ); | ||
{ | ||
const char * plot_path = plot_config_get_path( plot_config ); | ||
util_make_path( plot_path ); | ||
} | ||
|
||
{ | ||
menu_type * menu = menu_alloc("Help: Miscellanous" , "Back" , "bB"); | ||
menu_add_helptext(menu , "This option contains miscellaneous options."); | ||
menu_add_item(menu , "Open manual (firefox)" , "mM" , enkf_tui_help_manual_misc , enkf_main , NULL); | ||
menu_run(menu); | ||
menu_free(menu); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
Copyright (C) 2012 Statoil ASA, Norway. | ||
The file 'enkf_tui_QC.h' is part of ERT - Ensemble based Reservoir Tool. | ||
ERT is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
ERT is distributed in the hope that it will be useful, but WITHOUT ANY | ||
WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
FITNESS FOR A PARTICULAR PURPOSE. | ||
See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html> | ||
for more details. | ||
*/ | ||
|
||
#ifndef __ENKF_TUI_HELP_H__ | ||
#define __ENKF_TUI_HELP_H__ | ||
|
||
|
||
|
||
void enkf_tui_help_menu_main(void * ); | ||
void enkf_tui_help_menu_cases(void * ); | ||
void enkf_tui_help_menu_run(void * ); | ||
void enkf_tui_help_menu_plot(void * ); | ||
void enkf_tui_help_menu_rank(void * ); | ||
void enkf_tui_help_menu_export(void * ); | ||
void enkf_tui_help_menu_table(void * ); | ||
void enkf_tui_help_menu_misc(void * ); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.