Skip to content

YAC-Coupling 2: MPI-YAC-Compatibility 3: #283

Draft
yoctoyotta1024 wants to merge 16 commits into
mainfrom
mpi_yac_step3_twoway_step2
Draft

YAC-Coupling 2: MPI-YAC-Compatibility 3: #283
yoctoyotta1024 wants to merge 16 commits into
mainfrom
mpi_yac_step3_twoway_step2

Conversation

@yoctoyotta1024

@yoctoyotta1024 yoctoyotta1024 commented Sep 30, 2025

Copy link
Copy Markdown
Owner

Depends on PR 282. This PR finishes what was begun by PR 282, including:

  • make YAC grid definition compatible with MPI
  • some debug followed by some cleanup
  • add option to switch between one-way or two-way coupling based on yac metadata channel

Also:

  • and redefine origin lat/lon instead of upper/lower lat/lon to avoid wierd stetching behaviour that makes CLEO gridbox boundaries always as large as upper-lower lat/lon defines, even when meters is inconsistent

To-DO:

  • PR into ICON
  • formatting/linting
  • code review, especially deleting redundant commented out code e.g. upper_latitude/longitude
  • 4 things needs to be validated (plotted) before merge: one-way and two-way, with and without >1 MPI processes
  • run with one-way coupling offline
  • check issue 101

@yoctoyotta1024 yoctoyotta1024 force-pushed the mpi_yac_step3_twoway_step2 branch from ec409f6 to 05fb1c2 Compare September 30, 2025 09:30
@yoctoyotta1024 yoctoyotta1024 changed the title YAC-Coupling: MPI-YAC-Compatibility 1: make YAC grid definition compatible with MPI YAC-Coupling 2: MPI-YAC-Compatibility 3: make YAC grid definition compatible with MPI Sep 30, 2025
@yoctoyotta1024 yoctoyotta1024 force-pushed the mpi_yac_step3_twoway_step2 branch 5 times, most recently from 6732956 to 71cb4b5 Compare October 2, 2025 08:41
@yoctoyotta1024 yoctoyotta1024 marked this pull request as draft October 2, 2025 08:41
@yoctoyotta1024 yoctoyotta1024 force-pushed the mpi_yac_step3_twoway_step2 branch 2 times, most recently from 8a92c36 to 84bca28 Compare October 2, 2025 09:54
@yoctoyotta1024 yoctoyotta1024 changed the title YAC-Coupling 2: MPI-YAC-Compatibility 3: make YAC grid definition compatible with MPI YAC-Coupling 2: MPI-YAC-Compatibility 3: make YAC grid definition compatible with MPI, debug, cleanup and add option for one-way or two-way coupling Nov 6, 2025
@yoctoyotta1024 yoctoyotta1024 changed the title YAC-Coupling 2: MPI-YAC-Compatibility 3: make YAC grid definition compatible with MPI, debug, cleanup and add option for one-way or two-way coupling YAC-Coupling 2: MPI-YAC-Compatibility 3: Nov 6, 2025
yoctoyotta1024 and others added 16 commits November 18, 2025 17:36
- Addressed the issue of staggered coupling, by issuing less number of puts in CLEO
- Added new put function which calls yac_cput
- Still requires some polishing of the code
match ' coupling_timestep[6] = PT30S; ' in yac_cartesian_dynamics.cpp
- Vertex Longitudes are now calculated using cartesian coordinates from gridbox_bounds
- domain definition is modified to support two way coupling in the config file
- Miscellaneous YAC related changes to make the two-cpld system more flexible
…a coupling flag to switch between oneway and twoway coupling with ICON.
see commit: 770d369

note: still cropped at circa. 2.8km in z dimension
- comment out unused variables
- no const on int return of function
- initialise nullptr explicitly
@yoctoyotta1024 yoctoyotta1024 force-pushed the mpi_yac_step3_twoway_step2 branch from 9c1070b to 6a04419 Compare November 18, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants