diff --git a/applications/resdata/convert.c b/applications/resdata/convert.c index 95f3b9aa2..f59b7b1e7 100644 --- a/applications/resdata/convert.c +++ b/applications/resdata/convert.c @@ -67,6 +67,7 @@ void file_convert(const char *src_file, const char *target_file, } int main(int argc, char **argv) { + fprintf(stderr, "** Warning: convert.x is deprecated. Use resfo instead\n"); if (argc == 1) { fprintf(stderr, "Usage: convert.x ...\n"); diff --git a/applications/resdata/grdecl_grid.c b/applications/resdata/grdecl_grid.c index 3ceb4e398..7c37ddbfd 100644 --- a/applications/resdata/grdecl_grid.c +++ b/applications/resdata/grdecl_grid.c @@ -26,6 +26,8 @@ #include int main(int argc, char **argv) { + fprintf(stderr, "** Warning: grdecl_grid is deprecated. Use OPM to parse " + "the deck instead\n"); FILE *stream = util_fopen(argv[1], "r"); rd_kw_type *gridhead_kw = rd_kw_fscanf_alloc_grdecl_dynamic__(stream, SPECGRID_KW, false, RD_INT); diff --git a/applications/resdata/grdecl_test.c b/applications/resdata/grdecl_test.c index a7e5a4e81..7e8c0996d 100644 --- a/applications/resdata/grdecl_test.c +++ b/applications/resdata/grdecl_test.c @@ -23,6 +23,8 @@ #include int main(int argc, char **argv) { + fprintf(stderr, + "** Warning: grdecl_test.x is deprecated. Use res2df instead\n"); FILE *stream = util_fopen(argv[1], "r"); { while (true) { diff --git a/applications/resdata/grid_dump.c b/applications/resdata/grid_dump.c index 8ceb69d71..e7e2b825a 100644 --- a/applications/resdata/grid_dump.c +++ b/applications/resdata/grid_dump.c @@ -24,6 +24,7 @@ #include int main(int argc, char **argv) { + fprintf(stderr, "** Warning: grid_dump.x is deprecated\n"); if (argc < 2) { fprintf(stderr, "%s: filename \n", argv[0]); exit(1); diff --git a/applications/resdata/grid_dump_ascii.c b/applications/resdata/grid_dump_ascii.c index 54bcbcba3..a163836e7 100644 --- a/applications/resdata/grid_dump_ascii.c +++ b/applications/resdata/grid_dump_ascii.c @@ -24,6 +24,7 @@ #include int main(int argc, char **argv) { + fprintf(stderr, "** Warning: grid_dump_ascii.x is deprecated\n"); if (argc < 2) { fprintf(stderr, "%s: filename \n", argv[0]); exit(1); diff --git a/applications/resdata/grid_info.c b/applications/resdata/grid_info.c index 6094803d6..924c9ec4f 100644 --- a/applications/resdata/grid_info.c +++ b/applications/resdata/grid_info.c @@ -24,6 +24,9 @@ #include int main(int argc, char **argv) { + fprintf( + stderr, + "** Warning: grid_info is deprecated. Use res2df and pandas instead\n"); if (argc < 2) { fprintf(stderr, "%s: filename \n", argv[0]); exit(1); diff --git a/applications/resdata/kw_list.c b/applications/resdata/kw_list.c index 28305c110..92700b24b 100644 --- a/applications/resdata/kw_list.c +++ b/applications/resdata/kw_list.c @@ -51,6 +51,8 @@ void kw_list(const char *filename) { } int main(int argc, char **argv) { + fprintf(stderr, + "** Warning: kw_list.x deprecated. Use resfo in python instead\n"); int i; for (i = 1; i < argc; i++) kw_list(argv[i]); diff --git a/applications/resdata/load_test.c b/applications/resdata/load_test.c index 6e04f2468..a550077d6 100644 --- a/applications/resdata/load_test.c +++ b/applications/resdata/load_test.c @@ -65,6 +65,7 @@ void test_case(const char *base, bool load_all) { } int main(int argc, char **argv) { + fprintf(stderr, "** Warning: load_test is deprecated\n"); bool load_all = true; int i; for (i = 1; i < argc; i++) diff --git a/applications/resdata/make_grid.c b/applications/resdata/make_grid.c index 0dfb41f79..474a22b64 100644 --- a/applications/resdata/make_grid.c +++ b/applications/resdata/make_grid.c @@ -24,6 +24,7 @@ #include int main(int argc, char **argv) { + fprintf(stderr, "** Warning: make_grid is deprecated. Use python instead"); if (argc != 5) { fprintf(stderr, "%s: basename nx ny nz \n", argv[0]); exit(1); diff --git a/applications/resdata/select_test.c b/applications/resdata/select_test.c index a4a4e6aa4..84302f69b 100644 --- a/applications/resdata/select_test.c +++ b/applications/resdata/select_test.c @@ -25,6 +25,8 @@ #include int main(int argc, char **argv) { + fprintf(stderr, + "** Warning: select_test.x is deprecated. Use res2df instead\n"); const char *path = argv[1]; const char *base = argv[2]; stringlist_type *names = stringlist_alloc_new(); diff --git a/applications/resdata/view_summary.cpp b/applications/resdata/view_summary.cpp index 5ad7503a0..76ecc821c 100644 --- a/applications/resdata/view_summary.cpp +++ b/applications/resdata/view_summary.cpp @@ -133,6 +133,9 @@ static void build_key_list(const rd_sum_type *rd_sum, stringlist_type *key_list, } int main(int argc, char **argv) { + fprintf( + stderr, + "** Warning: summary.x is deprecated. Use res2df summary instead\n"); install_SIGNALS(); { bool report_only = false; diff --git a/applications/well/ri_well_test.c b/applications/well/ri_well_test.c index be38bcd80..190e70237 100644 --- a/applications/well/ri_well_test.c +++ b/applications/well/ri_well_test.c @@ -32,6 +32,8 @@ void usage() { } int main(int argc, char **argv) { + fprintf(stderr, + "** Warning: ri_well_test is deprecated and will be removed\n"); if (argc < 3) usage(); else { diff --git a/applications/well/segment_info.c b/applications/well/segment_info.c index e7251fd5a..a6d4d725b 100644 --- a/applications/well/segment_info.c +++ b/applications/well/segment_info.c @@ -34,6 +34,9 @@ #include int main(int argc, char **argv) { + fprintf( + stderr, + "** Warning: segment_info is deprecated. Use res2df rft instead.\n"); const char *Xfile = argv[1]; rd_file_type *rst_file = rd_file_open(Xfile, 0); rd_rsthead_type *rst_head = rd_rsthead_alloc( diff --git a/applications/well/well_CF_dump.c b/applications/well/well_CF_dump.c index d945d773c..6e81bef00 100644 --- a/applications/well/well_CF_dump.c +++ b/applications/well/well_CF_dump.c @@ -16,11 +16,14 @@ for more details. */ +#include #include #include #include int main(int argc, char **argv) { + fprintf(stderr, + "** Warning: CF_dump is deprecated. Use res2df rft instead\n"); char *grid_file = argv[1]; char *rst_file = argv[2]; rd_grid_type *grid = rd_grid_alloc(grid_file); diff --git a/setup.py b/setup.py index f973d9abc..2fbf5ad18 100644 --- a/setup.py +++ b/setup.py @@ -34,23 +34,23 @@ def utility_wrappers(): return [ name + " = resdata.bin:main" for name in ( - "CF_dump", - "convert.x", + "CF_dump", # deprecated + "convert.x", # deprecated "rd_pack.x", "rd_unpack.x", - "grdecl_grid", - "grdecl_test.x", - "grid_dump.x", - "grid_dump_ascii.x", - "grid_info.x", - "kw_extract", - "kw_list.x", - "load_test.x", - "make_grid", - "ri_well_test", - "segment_info", - "select_test.x", - "summary.x", + "grdecl_grid", # deprecated + "grdecl_test.x", # deprecated + "grid_dump.x", # deprecated + "grid_dump_ascii.x", # deprecated + "grid_info.x", # deprecated + "kw_extract", # deprecated + "kw_list.x", # deprecated + "load_test.x", # deprecated + "make_grid", # deprecated + "ri_well_test", # deprecated + "segment_info", # deprecated + "select_test.x", # deprecated + "summary.x", # deprecated ) ]