Skip to content
Snippets Groups Projects
  1. Oct 14, 2022
    • Lionel GUEZ's avatar
      Polish · 86d8e964
      Lionel GUEZ authored
      86d8e964
    • Lionel GUEZ's avatar
      Conditionally compile MPI calls in `config_graph` · 69c7169a
      Lionel GUEZ authored
      Because we want to call `config_graph` in sequential program
      `test_overlap`.
      69c7169a
    • Lionel GUEZ's avatar
      Remove unused procedure weight · 9ff8a9bb
      Lionel GUEZ authored
      Remove unused procedure weight and corresponding unit test. weight is
      not used since commit edb16459, after tag v0.20.
      9ff8a9bb
    • Lionel GUEZ's avatar
      Change suffix · 8b1df71a
      Lionel GUEZ authored
      Change suffix because we are going to add preprocessor directives.
      8b1df71a
    • Lionel GUEZ's avatar
      Move files around · 3289c070
      Lionel GUEZ authored
      We are trying to define clearly the directories and what Fortran files
      they should contain:
      
      - `Inst_eddies`: May only contain program units which make up the
      program `inst_eddies`. If a program unit does not go into
      `inst_eddies`, it should not be here. Not all program units going into
      `inst_eddies` must be here: some could be in directory Common.
      
      - `Inst_eddies/Tests`: Main programs of unit tests for procedures in
      directory `Inst_eddies`. Plus procedures used only in these unit tests.
      
      - `Overlap`: May only contain program units which make up the program
      `eddy_graph`. If a program unit does not go into `eddy_graph`, it
      should not be here. Not all program units going into `eddy_graph` must
      be here: some could be in directory Common.
      
      - `Overlap/Tests`: Main programs of unit tests for procedures in
      directory `Overlap`. Plus procedures used only in these unit tests.
      
      - Common: Procedures that are used in both programs `inst_eddies` and
      `eddy_graph`.
      
      - Common/Tests: Main programs of unit tests for procedures in
      directory `Common`. Plus procedures used only in these unit
      tests. Plus procedures used in unit tests of both `Inst_eddies` and
      `Overlap` directories but not used in either program `inst_eddies` nor
      `eddy_graph`.
      3289c070
    • Lionel GUEZ's avatar
      Polish · 4e478605
      Lionel GUEZ authored
      4e478605
    • Lionel GUEZ's avatar
      b4b2afdc
    • Lionel GUEZ's avatar
      Polish · dc8d3a70
      Lionel GUEZ authored
      dc8d3a70
    • Lionel GUEZ's avatar
      Remove dummy arguments of `recv_snapshot` · 5ce8e3c5
      Lionel GUEZ authored
      Remove dummy arguments nlon, nlat, copy of procedure `recv_snapshot`,
      use module variables instead.
      5ce8e3c5
    • Lionel GUEZ's avatar
      Remove dummy argument of `dispatch_snapshot` · e6712289
      Lionel GUEZ authored
      Remove dummy argument `max_delta` of procedure `dispatch_snapshot`,
      use module variable instead.
      e6712289
    • Lionel GUEZ's avatar
      Remove dummy arguments of `read_snapshot` · e4256945
      Lionel GUEZ authored
      Remove dummy arguments nlon, nlat, corner, step of procedure
      `read_snapshot`, use module variables instead. Note that we keep copy
      as a dummy argument instead of using the variable of module
      `config_graph_m`, because we want the procedure `read_snapshot` to be
      usable outside of the `eddy_graph` program.
      e4256945
    • Lionel GUEZ's avatar
      Remove dummy arguments of `overlap` · 2b7c5b3d
      Lionel GUEZ authored
      Remove dummy arguments nlon, nlat, periodic, `dist_lim` of
      procedure `overlap`, use module variables instead.
      2b7c5b3d
    • Lionel GUEZ's avatar
      Polish · 219f5d44
      Lionel GUEZ authored
      219f5d44
    • Lionel GUEZ's avatar
      Use variables of module `config_graph_m` · 62a80db8
      Lionel GUEZ authored
      62a80db8
    • Lionel GUEZ's avatar
      Remove dummy arguments of `get_snapshot` · 38bb4c90
      Lionel GUEZ authored
      Remove dummy arguments nlon, nlat, corner, step, copy, `max_delta` of
      procedure `get_snapshot`, use module variables instead.
      38bb4c90
    • Lionel GUEZ's avatar
      Polish · c35c3b18
      Lionel GUEZ authored
      c35c3b18
    • Lionel GUEZ's avatar
      Add to lists of source files · 94ef3cf9
      Lionel GUEZ authored
      Add `config_graph.f90`and `read_grid.F90` to lists of source files.
      94ef3cf9
    • Lionel GUEZ's avatar
      Create subroutines `config_graph` and `read_grid` · 6c937242
      Lionel GUEZ authored
      Which read namelists. Motivations: diminish the number of arguments of
      procedure overlap; lighten the main program unit. We conditionally
      compile MPI calls in `read_grid` because we want to use variables of
      module`read_grid_m` in procedure `read_snapshot`, and `read_snapshot`
      is called from sequential program `test_nearby_extr`.
      6c937242
  2. Oct 10, 2022
  3. Sep 30, 2022
  4. Sep 26, 2022
  5. Sep 19, 2022
  6. Sep 16, 2022
    • Lionel GUEZ's avatar
      Use a dictionary for `ishape_lists_all` · 74fdc9a2
      Lionel GUEZ authored
      Use a dictionary instead of a list for `ishape_lists_all`. Thus we
      avoid the need to remember that the first item corresponds to
      "Anticyclones" and we avoid the awkward `zip(ishape_lists_all,
      ["Anticyclones", "Cyclones"])`.
      74fdc9a2
    • Lionel GUEZ's avatar
      Use `SHPC_class` in `anim_eddy_contours.py` · c49a5085
      Lionel GUEZ authored
      c49a5085
    • Lionel GUEZ's avatar
      Polish · 5d8ed590
      Lionel GUEZ authored
      5d8ed590
    • Lionel GUEZ's avatar
      Create `n_slices.txt` if not found · 486ba014
      Lionel GUEZ authored
      The immediate motivation comes from tests `Mat_v6_to_shapefiles` and
      `Plot_eddy_contours_Mat`. `Plot_eddy_contours_Mat` needs to open the
      SHPC in `Mat_v6_to_shapefiles`. `Mat_v6_to_shapefiles` does not create
      `n_slices.txt` and we do not want to create `n_slices.txt` in
      `inst_eddies_v6.py` because this script could be run in parallel for
      several slices. There is no simple way to create `n_slices.txt`
      automatically after runnning `inst_eddies_v6.py` in the test
      `Mat_v6_to_shapefiles`. We cannot use a redirection in a command of
      the test so something like `echo 0 > n_slices.txt` would not work.
      486ba014
Loading