diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2003-05-09 13:02:44 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2003-05-09 13:02:44 +0000 |
commit | 9260984cf6e97fb0b49db5bc1259067588c972d2 (patch) | |
tree | ea550e73deb9cce3aa52da35a0b7ea2ca278a396 /src/patch | |
parent | 786a165da21b7e871f4ee7196088d1e2f34d333a (diff) |
tiny code tweak
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1054 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch')
-rw-r--r-- | src/patch/patch_system.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/patch/patch_system.cc b/src/patch/patch_system.cc index b518c0d..b136319 100644 --- a/src/patch/patch_system.cc +++ b/src/patch/patch_system.cc @@ -1985,8 +1985,8 @@ fclose(output_fp); // ignored. // void patch_system::read_unknown_gridfn(bool ghosted_flag, int unknown_gfn, - const char input_file_name[], - bool want_ghost_zones) + const char input_file_name[], + bool want_ghost_zones) { if (want_ghost_zones && !ghosted_flag) then error_exit(PANIC_EXIT, @@ -2022,12 +2022,12 @@ int line_number = 1; const fp dpx = p.dpx_of_rho_sigma(rho, sigma); const fp dpy = p.dpy_of_rho_sigma(rho, sigma); - const int N_buffer = 100; - char buffer[N_buffer]; + const int buffer_size = 250; + char buffer[buffer_size]; // read/discard comments and blank lines do { - if (fgets(buffer, N_buffer, input_fp) == NULL) + if (fgets(buffer, buffer_size, input_fp) == NULL) then error_exit(ERROR_EXIT, "***** patch::read_unknown_gridfn(%s patch, unknown_gfn=%d):\n" " I/O error or unexpected end-of-file on input!\n" |