phil-blain / CICE

Development repository for the CICE sea-ice model
Other
0 stars 0 forks source link

Git history cleanup #30

Closed phil-blain closed 4 years ago

phil-blain commented 4 years ago
phil-blain commented 4 years ago

"dynamics: move basal stres residual velocity to ice_dyn_shared"

phil-blain commented 4 years ago

"ice_dyn_vp.F90; remove references to EVP"

phil-blain commented 4 years ago

"ice_dyn_vp: write solver diagnostics only for master_task" -> inside and -> inside an

phil-blain commented 4 years ago

did the autosquash. Interesting Git stuff that I discovered:

EDIT 13/07/20

$ git -P  diff HEAD:cicecore/cicedynB/dynamics/ice_dyn_vp.F90 picard-doc:cicecore/cicedynB/dynamics/ice_dyn_vp.F90
diff --git a/cicecore/cicedynB/dynamics/ice_dyn_vp.F90 b/cicecore/cicedynB/dynamics/ice_dyn_vp.F90
index cadc331..81197a9 100644
--- a/cicecore/cicedynB/dynamics/ice_dyn_vp.F90
+++ b/cicecore/cicedynB/dynamics/ice_dyn_vp.F90
@@ -669,12 +669,12 @@ subroutine anderson_solver (icellt,   icellu,  &
          byfix    , & ! part of by that is constant during Picard
          umassdti     ! mass of U-cell/dte (kg/m^2 s)

-      real (kind=dbl_kind), dimension(nx_block,ny_block,max_blocks,4), intent(out) :: &
-         zetaD        ! zetaD = 2zeta (viscous coeff)
-
       type (ice_halo), intent(in) :: &
          halo_info_mask !  ghost cell update info for masked halo

+      real (kind=dbl_kind), dimension(nx_block,ny_block,max_blocks,4), intent(out) :: &
+         zetaD        ! zetaD = 2zeta (viscous coeff)
+
       real (kind=dbl_kind), dimension (nx_block,ny_block,max_blocks), intent(inout) :: &
          fpresx   , & ! x fixed point residual vector, fx = uvel - uprev_k
          fpresy   , & ! y fixed point residual vector, fy = vvel - vprev_k
@@ -727,7 +727,6 @@ subroutine anderson_solver (icellt,   icellu,  &
          res_diff   , & ! difference between current and previous residuals
          fpfunc     , & ! current value of fixed point function
          fpfunc_old , & ! previous value of fixed point function
-         Fvec       , & ! (Fx,Fy) (nonlinear residual) as vector
          tmp            ! temporary vector for BLAS calls

       real (kind=dbl_kind), dimension(ntot,im_andacc) :: &

So I did not succeed in getting the same blob add the end... Not that important since it's just a moved argument, and the deletion of an unused variable. Still, better to make sure everything is fine.

phil-blain commented 4 years ago

corrected the messages mentioned above. still need to check all commit messages.

phil-blain commented 4 years ago

I did git rebase --keep-base --reapply-cherry-picks my-first-commit~1 -x 'git commit --amend', with 'my-first-commit' being the first commit I authored. I reread all my commit messages (97) and edited them to make sure they follow best practices:

phil-blain commented 4 years ago

I squashed a few other commits together, but left a bunch as is. It's simpler this way.

phil-blain commented 4 years ago

I rebased on top of upstream/master. Got a few conflicts, but nothing difficult. mostly in ice_init because this file is not merge-friendly (since several variables are on the same line in the namelist section).

phil-blain commented 4 years ago

I did another rebase, editing the commit that introduced VP namelist parameters, to play more nicely with the changes in https://github.com/CICE-Consortium/CICE/pull/468

phil-blain commented 4 years ago

I removed the last remaining "WIP: TOREMOVE" commit (most were dropped during the rebase onto upstream/master).

phil-blain commented 4 years ago

I checked that git -P diff HEAD:cicecore/cicedynB/dynamics/ice_dyn_vp.F90 picard-doc:cicecore/cicedynB/dynamics/ice_dyn_vp.F90 gives the same result as above.