Skip to content
Snippets Groups Projects
  1. Sep 18, 2024
  2. Sep 12, 2024
    • GUEZ Lionel's avatar
      Create function `invert_proj` · 24c9eac0
      GUEZ Lionel authored
      Preparing to generalize to a non-uniform longitude-latitude grid.
      24c9eac0
    • GUEZ Lionel's avatar
      Polish · 6d7fe80f
      GUEZ Lionel authored
      6d7fe80f
    • GUEZ Lionel's avatar
      Check that `uniform_lon_lat` is true · 537ffdef
      GUEZ Lionel authored
      In program `test_mean_speed`. To make it work with a non-uniform grid,
      we would have to read a contour in projection coordinates.
      537ffdef
    • GUEZ Lionel's avatar
      Use `uniform_lon_lat` from modules · 8243946a
      GUEZ Lionel authored
      Use `uniform_lon_lat` from modules `input_ssh_m` or `read_grid_m` to
      compute actual argument of `shpc_create`.
      8243946a
    • GUEZ Lionel's avatar
      Read `extr_proj` if not `uniform_lon_lat` · d43d67a6
      GUEZ Lionel authored
      In program `examine_eddy`.
      d43d67a6
    • GUEZ Lionel's avatar
      Replace `grid_lon_lat` by `with_proj` · 76f029aa
      GUEZ Lionel authored
      Replace dummy argument `grid_lon_lat` of procedure `shpc_create` by
      `with_proj`.
      76f029aa
    • GUEZ Lionel's avatar
      Specify whether to read `extr_proj` in `shpc_open` · 00080fd7
      GUEZ Lionel authored
      Specify whether to read shapefile `extr_proj` in procedure `shpc_open`
      instead of just trying to read this shapefile. Use `uniform_lon_lat`
      to decide whether to read the shapefile. As `shpc_open` is called in
      both programs `inst_eddies` and `eddy_graph`, we cannot access
      variable `uniform_lon_lat` of module `input_ssh_m`, which is not used
      in program `eddy_graph`, nor variable `uniform_lon_lat` of module
      `read_grid_m`, which is not used in program `inst_eddies`. So we add a
      dummy argument `with_proj` to procedure `shpc_open`.
      00080fd7
    • GUEZ Lionel's avatar
      Rename variable `corner` to `corner_whole` · ef43e372
      GUEZ Lionel authored
      Rename variable `corner` of module `input_ssh_m` to `corner_whole`.
      ef43e372
    • GUEZ Lionel's avatar
      Promote `step` to variable of module `input_ssh_m` · bb4980b6
      GUEZ Lionel authored
      I did not like the difference of treatment between corner and step.
      bb4980b6
    • GUEZ Lionel's avatar
      Read periodic in a namelist · 086d52f5
      GUEZ Lionel authored
      Preparing to read a second input variable from stdin in procedure
      `input_ssh`.
      086d52f5
    • GUEZ Lionel's avatar
      Read `periodic` in program `inst_eddies` · 12c21b42
      GUEZ Lionel authored
      Instead of deducing it from the longitude coordinate. The deduction
      could not be generalized to a non-uniform longitude-latitude
      grid. Also, the test on `step(1)` and nlon was not perfectly robust.
      12c21b42
    • GUEZ Lionel's avatar
      Write `grid_nml.txt` to current directory · 8eadc458
      GUEZ Lionel authored
      We are trying to simplify the logic in program `inst_eddies`. Also,
      the program `inst_eddies` should not write `grid_nml.txt` to the top
      level of the SHPC directory since several instances could run in
      parallel for several slices. So we are leaving it as a task for a
      script above `inst_eddies` to create `grid_nml.txt` at the top level
      of the SHPC directory. In tests, we have to move `grid_nml.txt` to
      SHPC because we use `SHPC/grid_nml.txt` in other tests.
    • GUEZ Lionel's avatar
      Read `config_nml` from stdin in subroutine config · 1100bbaf
      GUEZ Lionel authored
      We are reverting commit d4d05bc2. It was not true that we needed two
      input fluxes in the Fortran program. `inst_eddies.py` can read the
      file `config_nml.txt` and merge its content to stdin for the Fortran
      program.
      1100bbaf
    • GUEZ Lionel's avatar
      Polish · a6af76a4
      GUEZ Lionel authored
      a6af76a4
    • GUEZ Lionel's avatar
      Add argument SHPC-dir to script `inst_eddies_Aviso.py` · cf970d4d
      GUEZ Lionel authored
      Add argument SHPC-dir to script `inst_eddies_Aviso.py`. We want to be
      able to run `inst_eddies_Aviso` in parallel for several slices. Since
      we write `used_config_nml.txt` to the current directory, we need to
      run the parallel instances from different directories. So the current
      directory cannot always be the directory containing the SHPC to be
      appended to.
      cf970d4d
    • GUEZ Lionel's avatar
      Add argument `SHPC_dir` to `loop_inst_eddies` · c0189703
      GUEZ Lionel authored
      Add argument `SHPC_dir` to function `loop_inst_eddies`. We want to be
      able to run `loop_inst_eddies` in parallel for several slices. Since
      we write `used_config_nml.txt` to the current directory, we need to
      run the parallel instances from different directories. So the current
      directory cannot always be the directory containing the SHPC to be
      appended to.
      c0189703
    • GUEZ Lionel's avatar
      Polish · c4117235
      GUEZ Lionel authored
      c4117235
    • GUEZ Lionel's avatar
      Write `used_config_nml.txt` to current directory · 4157fa1e
      GUEZ Lionel authored
      We are trying to simplify the logic in program `inst_eddies`. Also,
      the program `inst_eddies` should not write `used_config_nml.txt` to
      the top level of the SHPC directory since several instances could run
      in parallel for several slices. So we are leaving it as a task for a
      script over `inst_eddies` to create `used_config_nml.txt` at the top
      level of the SHPC directory.
      4157fa1e
    • GUEZ Lionel's avatar
      Add argument SHPC-dir to program `inst_eddies` · 0cfe5b01
      GUEZ Lionel authored
      We want to be able to run `inst_eddies` from a directory other than
      the directory containing the SHPC to be appended to. Preparing to
      write `grid_nml.txt` and `used_config_nml.txt` in the current
      directory. To be able to do this in parallel for several slices, we
      need to be running in different directories.
      0cfe5b01
  3. Sep 09, 2024
  4. Jul 19, 2024
  5. Jul 15, 2024
    • Lionel GUEZ's avatar
      Change the type of `cont_list_proj` to polyline · c89018ce
      Lionel GUEZ authored
      We are circumventing a bug of the Intel Fortran compiler. This was
      tested with both ifx `2023.1.0` and ifort `2021.9.0`. The bug occurs
      on return from procedure `set_max_speed`: `free(): double free
      detected in tcache 2` and crashes execution. The bug is revealed in
      commit cc13fd5b. The GNU compiler does not have this bug.
      
      To circumvent the Intel compiler bug, instead of an ssh component of
      `cont_list_proj`, we have to use a separate array:
      `cont_list_ssh`. This is maybe for the best because the component
      `area` of `cont_list_proj` was not defined.
      c89018ce
  6. Jul 06, 2024
    • GUEZ Lionel's avatar
      Input `max_radius` instead of `MAX_RADIUS_deg` · 803b9bcc
      GUEZ Lionel authored
      `MAX_RADIUS_deg` is not general enough for a non longitude latitude
      grid. The variable `max_radius` moves from module `input_ssh_m` to
      module `config_m`. The variable `MAX_RADIUS_deg` disappears. The
      constraint `2 * max_radius_deg(1) < 180` becomes `4 * max_radius(1) <
      nlon` but is only applied to the periodic case because we do not have
      the general equivalent of 180° in number of points.
      803b9bcc
    • GUEZ Lionel's avatar
      Promote nlon and nlat · be545162
      GUEZ Lionel authored
      Promote nlon and nlat to variables of module `input_ssh_m`, avoiding
      their repeated computation.
      be545162
    • GUEZ Lionel's avatar
      cdeaedf4
Loading