Skip to content

Commit f813294

Browse files
authored
Update version to CICE 6.4.1 (#803)
Update Icepack to latest release version Remove trailing blank space
1 parent 48cf07a commit f813294

File tree

16 files changed

+62
-62
lines changed

16 files changed

+62
-62
lines changed

cicecore/cicedyn/dynamics/ice_dyn_shared.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ subroutine alloc_dyn_shared
181181
iceTmask (nx_block,ny_block,max_blocks), & ! T mask for dynamics
182182
iceUmask (nx_block,ny_block,max_blocks), & ! U mask for dynamics
183183
fcor_blk (nx_block,ny_block,max_blocks), & ! Coriolis
184-
DminTarea (nx_block,ny_block,max_blocks), & !
184+
DminTarea (nx_block,ny_block,max_blocks), & !
185185
stat=ierr)
186186
if (ierr/=0) call abort_ice(subname//': Out of memory')
187187

@@ -240,7 +240,7 @@ subroutine init_dyn_shared (dt)
240240

241241
call set_evp_parameters (dt)
242242
! allocate dyn shared (init_uvel,init_vvel)
243-
call alloc_dyn_shared
243+
call alloc_dyn_shared
244244
! Set halo_dynbundle, this is empirical at this point, could become namelist
245245
halo_dynbundle = .true.
246246
nprocs = get_num_procs()

cicecore/cicedyn/dynamics/ice_dyn_vp.F90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module ice_dyn_vp
8888
reltol_andacc ! relative tolerance for Anderson acceleration
8989

9090
character (len=char_len), public :: &
91-
precond , & ! preconditioner for fgmres: 'ident' (identity), 'diag' (diagonal),
91+
precond , & ! preconditioner for fgmres: 'ident' (identity), 'diag' (diagonal),
9292
! 'pgmres' (Jacobi-preconditioned GMRES)
9393
algo_nonlin , & ! nonlinear algorithm: 'picard' (Picard iteration), 'anderson' (Anderson acceleration)
9494
ortho_type ! type of orthogonalization for FGMRES ('cgs' or 'mgs')
@@ -3344,7 +3344,7 @@ subroutine pgmres (zetax2 , etax2 , &
33443344

33453345
! Update workspace with boundary values
33463346
! NOTE: skipped for efficiency since this is just a preconditioner
3347-
! unless bfbflag is active
3347+
! unless bfbflag is active
33483348
if (bfbflag /= 'off') then
33493349
call stack_fields(workspace_x, workspace_y, fld2)
33503350
call ice_timer_start(timer_bound)
@@ -3565,7 +3565,7 @@ subroutine precondition(zetax2 , etax2, &
35653565

35663566
type (ice_halo), intent(in) :: &
35673567
halo_info_mask ! ghost cell update info for masked halo
3568-
3568+
35693569
real (kind=dbl_kind), dimension (nx_block,ny_block,max_blocks), intent(in) :: &
35703570
vx , & ! input vector (x components)
35713571
vy ! input vector (y components)

cicecore/cicedyn/general/ice_forcing.F90

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ module ice_forcing
118118

119119
real (kind=dbl_kind), dimension(:,:,:,:,:), allocatable :: &
120120
wave_spectrum_data ! field values at 2 temporal data points
121-
121+
122122
character(char_len), public :: &
123123
atm_data_format, & ! 'bin'=binary or 'nc'=netcdf
124124
ocn_data_format, & ! 'bin'=binary or 'nc'=netcdf
@@ -5650,7 +5650,7 @@ subroutine get_wave_spec
56505650
file=__FILE__, line=__LINE__)
56515651
else
56525652
#ifdef USE_NETCDF
5653-
call wave_spec_data
5653+
call wave_spec_data
56545654
#else
56555655
write (nu_diag,*) "wave spectrum file not available, requires cpp USE_NETCDF"
56565656
write (nu_diag,*) "wave spectrum file not available, using default profile"
@@ -5682,7 +5682,7 @@ subroutine wave_spec_data
56825682
use ice_grid, only: hm, tlon, tlat, tmask, umask
56835683
use ice_calendar, only: days_per_year, use_leap_years
56845684

5685-
integer (kind=int_kind) :: &
5685+
integer (kind=int_kind) :: &
56865686
ncid , & ! netcdf file id
56875687
i, j, freq , &
56885688
ixm,ixx,ixp , & ! record numbers for neighboring months
@@ -5710,7 +5710,7 @@ subroutine wave_spec_data
57105710
wave_spectrum_profile ! wave spectrum
57115711

57125712
character(len=64) :: fieldname !netcdf field name
5713-
character(char_len_long) :: spec_file
5713+
character(char_len_long) :: spec_file
57145714
character(char_len) :: wave_spec_type
57155715
logical (kind=log_kind) :: wave_spec
57165716
character(len=*), parameter :: subname = '(wave_spec_data)'
@@ -5736,7 +5736,7 @@ subroutine wave_spec_data
57365736
yr = fyear ! current year
57375737
!-------------------------------------------------------------------
57385738
! 6-hourly data
5739-
!
5739+
!
57405740
! Assume that the 6-hourly value is located at the end of the
57415741
! 6-hour period. This is the convention for NCEP reanalysis data.
57425742
! E.g. record 1 gives conditions at 6 am GMT on 1 January.
@@ -5787,7 +5787,7 @@ subroutine wave_spec_data
57875787
field_type=field_type_scalar)
57885788
call ice_close_nc(ncid)
57895789

5790-
5790+
57915791
! Interpolate
57925792
call interpolate_wavespec_data (wave_spectrum_data, wave_spectrum)
57935793

cicecore/cicedyn/general/ice_init.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ subroutine input_data
15431543
write(nu_diag,*) subname//' WARNING: tr_fsd=T but wave_spec=F - not recommended'
15441544
endif
15451545
end if
1546-
1546+
15471547
! compute grid locations for thermo, u and v fields
15481548

15491549
grid_ice_thrm = 'T'

cicecore/cicedyn/infrastructure/ice_grid.F90

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,15 +1396,15 @@ subroutine rectgrid
13961396
! original rectgrid defines latlon first
13971397
call rectgrid_scale_dxdy
13981398
else
1399-
! rectgrid no grid spacing.
1399+
! rectgrid no grid spacing.
14001400
! original method with addition to use namelist lat/lon reference
1401-
1401+
14021402
if (my_task == master_task) then
14031403
work_g1 = c0
14041404
length = dxrect*cm_to_m/radius*rad_to_deg
1405-
1405+
14061406
work_g1(1,:) = lonrefrect ! reference lon from namelist
1407-
1407+
14081408
do j = 1, ny_global
14091409
do i = 2, nx_global
14101410
work_g1(i,j) = work_g1(i-1,j) + length ! ULON
@@ -1416,13 +1416,13 @@ subroutine rectgrid
14161416
field_loc_NEcorner, field_type_scalar)
14171417
call ice_HaloExtrapolate(ULON, distrb_info, &
14181418
ew_boundary_type, ns_boundary_type)
1419-
1419+
14201420
if (my_task == master_task) then
14211421
work_g1 = c0
14221422
length = dyrect*cm_to_m/radius*rad_to_deg
1423-
1423+
14241424
work_g1(:,1) = latrefrect ! reference latitude from namelist
1425-
1425+
14261426
do i = 1, nx_global
14271427
do j = 2, ny_global
14281428
work_g1(i,j) = work_g1(i,j-1) + length ! ULAT
@@ -1535,84 +1535,84 @@ subroutine rectgrid
15351535
end subroutine rectgrid
15361536

15371537
!=======================================================================
1538-
1538+
15391539
subroutine rectgrid_scale_dxdy
1540-
1540+
15411541
! generate a variable spaced rectangluar grid.
15421542
! extend spacing from center of grid outward.
15431543
use ice_constants, only: c0, c1, c2, radius, cm_to_m, &
15441544
field_loc_center, field_loc_NEcorner, field_type_scalar
1545-
1545+
15461546
integer (kind=int_kind) :: &
15471547
i, j, iblk, &
15481548
imid, jmid, &
15491549
center1, center2 ! array centers for expanding dx, dy
1550-
1550+
15511551
real (kind=dbl_kind) :: &
15521552
length, &
15531553
rad_to_deg
15541554

15551555
real (kind=dbl_kind), dimension(:,:), allocatable :: &
15561556
work_g1
1557-
1557+
15581558
character(len=*), parameter :: subname = '(rectgrid_scale_dxdy)'
1559-
1559+
15601560
call icepack_query_parameters(rad_to_deg_out=rad_to_deg)
15611561

15621562
allocate(work_g1(nx_global,ny_global))
1563-
1563+
15641564
! determine dx spacing
15651565
! strategy: initialize with dxrect.
15661566
! if want to scale the grid, work from center outwards,
15671567
! multplying neighbor cell by scale factor.
15681568
! this assumes dx varies in x direction only.
15691569
! (i.e, dx is the same across same y location)
15701570
if (my_task == master_task) then
1571-
1571+
15721572
! initialize with initial dxrect
15731573
work_g1(:,:) = dxrect
1574-
1574+
15751575
! check if nx is even or odd
15761576
! if even, middle 2 columns are center
15771577
! of odd, middle 1 column is center
15781578
if (mod(nx_global,2) == 0) then ! nx_global is even
1579-
1579+
15801580
! with even number of x locatons,
15811581
! the center two y columns are center
15821582
center1 = nx_global/2 ! integer math
15831583
center2 = center1 + 1 ! integer math
1584-
1584+
15851585
else ! nx_global = odd
15861586
! only one center index. set center2=center1
15871587
center1 = ceiling(real(nx_global/2),int_kind)
15881588
center2 = center1
15891589
endif
1590-
1590+
15911591
! note loop over only half the x grid points (center1)-1
15921592
! working from the center outward.
15931593
do j = 1, ny_global
15941594
do i = 1, center1-1
15951595
! work from center1 to left
15961596
work_g1(center1-i,j) = dxscale*work_g1(center1-i+1,j)
1597-
1597+
15981598
! work from center2 to right
15991599
work_g1(center2+i,j) = dxscale*work_g1(center2+i-1,j)
16001600
enddo ! i
16011601
enddo ! j
1602-
1602+
16031603
endif ! my_task == master_task
1604-
1605-
1604+
1605+
16061606
! note work_g1 is converted to meters in primary_grid_lengths_HTN
16071607
call primary_grid_lengths_HTN(work_g1) ! dxU, dxT, dxN, dxE
1608-
1608+
16091609
! make ULON array
16101610
if (my_task == master_task) then
1611-
1611+
16121612
! make first column reference lon in radians.
16131613
! the remaining work_g1 is still dx in meters
16141614
work_g1(1,:) = lonrefrect/rad_to_deg ! radians
1615-
1615+
16161616
! loop over remaining points and add spacing to successive
16171617
! x locations
16181618
do j = 1, ny_global
@@ -1626,57 +1626,57 @@ subroutine rectgrid_scale_dxdy
16261626
field_loc_NEcorner, field_type_scalar)
16271627
call ice_HaloExtrapolate(ULON, distrb_info, &
16281628
ew_boundary_type, ns_boundary_type)
1629-
1629+
16301630
! determine dy spacing
16311631
! strategy: initialize with dyrect.
16321632
! if want to scale the grid, work from center outwards,
16331633
! multplying neighbor cell by scale factor.
16341634
! this assumes dy varies in y direction only.
16351635
! (i.e, dy is the same across same x location)
16361636
if (my_task == master_task) then
1637-
1637+
16381638
! initialize with initial dxrect
16391639
work_g1(:,:) = dyrect
16401640

16411641
! check if ny is even or odd
16421642
! if even, middle 2 rows are center
16431643
! of odd, middle 1 row is center
16441644
if (mod(ny_global,2) == 0) then ! ny_global is even
1645-
1645+
16461646
! with even number of x locatons,
16471647
! the center two y columns are center
16481648
center1 = ny_global/2 ! integer math
16491649
center2 = center1 + 1 ! integer math
1650-
1650+
16511651
else ! ny_global = odd
16521652
! only one center index. set center2=center1
16531653
center1 = ceiling(real(ny_global/2),int_kind)
16541654
center2 = center1
16551655
endif
1656-
1656+
16571657
! note loop over only half the y grid points (center1)-1
16581658
! working from the center outward.
16591659
do i = 1, nx_global
16601660
do j = 1, center1-1
16611661
! work from center1 to bottom
16621662
work_g1(i,center1-j) = dyscale*work_g1(i,center1-j+1)
1663-
1663+
16641664
! work from center2 to top
16651665
work_g1(i,center2+j) = dyscale*work_g1(i,center2+j-1)
16661666
enddo ! i
16671667
enddo ! j
16681668
endif ! mytask == master_task
16691669
! note work_g1 is converted to meters primary_grid_lengths_HTE
16701670
call primary_grid_lengths_HTE(work_g1) ! dyU, dyT, dyN, dyE
1671-
1671+
16721672
! make ULAT array
16731673
if (my_task == master_task) then
1674-
1674+
16751675
! make first row reference lat in radians.
16761676
! the remaining work_g1 is still dy in meters
16771677
work_g1(:,1) = latrefrect/rad_to_deg ! radians
1678-
1679-
1678+
1679+
16801680
! loop over remaining points and add spacing to successive
16811681
! x locations
16821682
do j = 2, ny_global ! start from j=2. j=1 is latrefrect
@@ -1690,10 +1690,10 @@ subroutine rectgrid_scale_dxdy
16901690
field_loc_NEcorner, field_type_scalar)
16911691
call ice_HaloExtrapolate(ULAT, distrb_info, &
16921692
ew_boundary_type, ns_boundary_type)
1693-
1693+
16941694

16951695
deallocate(work_g1)
1696-
1696+
16971697
end subroutine rectgrid_scale_dxdy
16981698

16991699
!=======================================================================

cicecore/drivers/direct/hadgem3/CICE_InitMod.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ subroutine cice_init
122122
call init_calendar ! initialize some calendar stuff
123123
call init_hist (dt) ! initialize output history file
124124

125-
if (kdyn == 1) then
125+
if (kdyn == 1) then
126126
call init_evp
127127
else if (kdyn == 2) then
128128
call init_eap ! define eap dynamics parameters, variables

cicecore/drivers/direct/nemo_concepts/CICE_InitMod.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ subroutine cice_init
122122
call init_calendar ! initialize some calendar stuff
123123
call init_hist (dt) ! initialize output history file
124124

125-
if (kdyn == 1) then
125+
if (kdyn == 1) then
126126
call init_evp
127127
else if (kdyn == 2) then
128128
call init_eap ! define eap dynamics parameters, variables

cicecore/drivers/mct/cesm1/CICE_InitMod.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ subroutine cice_init(mpicom_ice)
135135
call init_calendar ! initialize some calendar stuff
136136
call init_hist (dt) ! initialize output history file
137137

138-
if (kdyn == 1) then
138+
if (kdyn == 1) then
139139
call init_evp
140140
else if (kdyn == 2) then
141141
call init_eap ! define eap dynamics parameters, variables

cicecore/drivers/nuopc/cmeps/ice_comp_nuopc.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ subroutine InitializeAdvertise(gcomp, importState, exportState, clock, rc)
576576
call t_startf ('cice_init1')
577577
call cice_init1
578578
call t_stopf ('cice_init1')
579-
579+
580580
!-----------------------------------------------------------------
581581
! Advertise fields
582582
!-----------------------------------------------------------------

cicecore/drivers/nuopc/dmi/CICE_InitMod.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ subroutine cice_init(mpi_comm)
144144
call init_calendar ! initialize some calendar stuff
145145
call init_hist (dt) ! initialize output history file
146146

147-
if (kdyn == 1) then
147+
if (kdyn == 1) then
148148
call init_evp
149149
else if (kdyn == 2) then
150150
call init_eap ! define eap dynamics parameters, variables

0 commit comments

Comments
 (0)