Skip to content

Remove old static B code#1020

Merged
travissluka merged 11 commits intodevelopfrom
feature/rm_vertconv_horizfilt
Feb 28, 2024
Merged

Remove old static B code#1020
travissluka merged 11 commits intodevelopfrom
feature/rm_vertconv_horizfilt

Conversation

@travissluka
Copy link
Contributor

@travissluka travissluka commented Feb 27, 2024

Description

Removes VertConv , HorizFilt, and SocaError, as these have been replaced by EXPLICIT_DIFFUSION saber central block.

What was changed

  • Delete the VertConv class and remove from ctests
  • Delete the HorizFilt class and remove from ctests
  • Mostly delete the SocaError class (empty stubs are still needed for traits.h) and replace with EXPLICIT_DIFFUSION in the ctests
  • Implement randomization for EXPLICIT_DIFFUSION (multiplying gaussian noise by the square root of the diffusion operator), for the enspert test
  • generic clean up of the ctests
    • some ctests were renamed. Now it is assumed that, unless noted otherwise in the test name, a ctest uses EXPLICIT_DIFFUSION for correlation and BUMP_NICAS for localization.
    • a data_output/ directory is created for each ctest working directory to put its output. This way, I can easily grep the testinput/ config files to see what the inputs for a ctest are ./data_generated/...

@travissluka travissluka added the SOCA Sea-ice, Ocean, and Coupled Assimilation label Feb 27, 2024
@travissluka travissluka self-assigned this Feb 27, 2024
@travissluka
Copy link
Contributor Author

over 3,000 lines of code deleted, woo 🎉

Copy link
Contributor

@guillaumevernieres guillaumevernieres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💣

Copy link
Contributor

@kbhargava kbhargava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@travissluka
Copy link
Contributor Author

GPT: "A JEDI computer programmer about to delete thousands of lines of code. Sitting at his computer, laughing, surrounded by an apocalyptic ocean and sea-ice scene outside"
image

@travissluka travissluka merged commit 729e9b7 into develop Feb 28, 2024
@travissluka travissluka deleted the feature/rm_vertconv_horizfilt branch February 28, 2024 16:30
travissluka added a commit that referenced this pull request Mar 8, 2024
* Remove old static B code (#1020)

* deprecate horizfilt/vertconv

* remove old tests

* remove 3dvar_godas

* remove SocaError

* remove horizfilt

* remove vertconv

* WIP

* add explicit_diffusion sqrt multiply

* fix more tests

* update tests

* increase tolerances

* Remove MOM_restart_CS from src/soca/Model/ufs/soca_mom6.F90

* Comment out checkpoint test in test/CMakeLists.txt

---------

Co-authored-by: Travis Sluka <tsluka@ucar.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SOCA Sea-ice, Ocean, and Coupled Assimilation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove old / unused static B stuff

3 participants