1. 24 Oct, 2017 1 commit
  2. 18 Oct, 2017 1 commit
  3. 17 Oct, 2017 1 commit
  4. 04 Oct, 2017 1 commit
    • David Deepwell's avatar
      Add all blitz indices in declaration of rank 3 matrix · 1df50bf9
      David Deepwell authored
      Creating a rank 3 matrix requires all three indices in the declaration
      statement. This is only necessary when debugging, but should be explicit
      wherever possible. Otherwise, too much time will be spent trying to
      remember this fact when it matters.
      1df50bf9
  5. 04 Aug, 2017 1 commit
  6. 05 May, 2017 1 commit
    • David Deepwell's avatar
      Create BPE calculator · 8701eded
      David Deepwell authored
      The background Potential Energy (BPE) is calculated in
      compute_Background_PE in Science.cpp. The APE can
      be calculated afterwards from the BPE and PE from the
      diagnostic file.
      8701eded
  7. 04 May, 2017 1 commit
    • David Deepwell's avatar
      Create mechanism to easily output diagnostic values · 8b9ecf2c
      David Deepwell authored
      Diagnostic values (like total KE/ total enstrophy/ mass/ etc)
      are often desired outputs at each time-step. These values
      are easily printed to a txt file using two functions:
      add_diagnostic and write_diagnostics.
      
      add_diagnostic adds the name and value of a diagnostic into a
      pair of strings which will be written into diagnostics.txt
      which the function write_diagnostics.
      
      Usage of add_diagnostic is as follows:
      add_diagnostic(name, value, header, line);
      This will add the string, 'name', onto the string, 'header', which
      will be the header of the diagnostics.txt file. The double (or
      int), 'value', will be added onto the string, 'line', which will
      be a row (or line) in the diagnostics.txt file.
      
      write_diagnostics will write these lines (header and line) into
      diagnostics.txt.
      8b9ecf2c
  8. 04 Feb, 2017 3 commits
    • David Deepwell's avatar
      Move time step checker to BaseCase · 428b5399
      David Deepwell authored
      The empty shell of check_timestep in BaseCase has been filled
      with what was essentially the same thing in each case file.
      Again, this is just more case file house cleaning.
      
      A few ancillary functions have also been written to help.
      The most important might be get_dt_max() which returns dt_max.
      dt_max can either be specified in spins.conf or defined in the
      case file based on the buoyancy frequency. Currently, if
      dt_max > 0 and in spins.conf, then that value is used. Otherwise,
      0.5/sqrt(N2_max) is used.
      
      The re-definition of check_timestep in each case file can now be
      removed so long as the associated ancillary functions and
      parameters are included.
      428b5399
    • David Deepwell's avatar
      Move restart sequence checking into Options.cpp · 25b5d62f
      David Deepwell authored
      The generic code block to check the restart sequence is not needed
      in the case file and has been moved into Options.cpp. This
      streamlines the case file and makes a single copy for all other
      case files to use.
      25b5d62f
    • David Deepwell's avatar
      Properly initialize get_restart_sequence() in case file · a1a18e74
      David Deepwell authored
      The re-definition of get_restart_sequence() was missing in
      gravity_current.cpp. This resulted in all restarts to read output
      zero (*.0). Restarting will now properly read the output number
      specified by restart_sequence.
      a1a18e74
  9. 27 Jan, 2017 2 commits
    • David Deepwell's avatar
      Add filter parameters to case options · b5470525
      David Deepwell authored
      gravity_current.cpp accepts filter parameters (f_cutoff, f_order,
      f_strength) as optional input arguments. Easy adjustment of the
      filter is useful when the flow become suddenly becomes too chaotic.
      b5470525
    • David Deepwell's avatar
      Move expansion parsing into Options.cpp · 3035b35a
      David Deepwell authored
      Parsing of expansion types in gravity_current.cpp moved to
      Options.cpp. This is a general procedure that other case files
      will and should make use of. It also simplifies the case file
      to the specific set-up of that case.
      3035b35a
  10. 24 Jan, 2017 2 commits
  11. 16 Jan, 2017 1 commit
    • David Deepwell's avatar
      Creation of a new case file and associated configuration file. · 4a8d478c
      David Deepwell authored
      This case file is restartable and will dump all variables at the end of the requested computation time (stated in spins.conf) when run on SCINET or SHARCNET. The spins.conf enables the quick set-up of a parameter sweep as parameters are set within it and not within the case file which would need to be re-compiled.
      This file will be used as a basis for the upcoming additions and changes to BaseCase.cpp and Science.cpp.
      4a8d478c