2020program test_mpp_update_domains_ad
2121 use mpp_mod, only : FATAL, WARNING, NOTE
2222 use mpp_mod, only : mpp_init, mpp_pe, mpp_npes, mpp_root_pe, mpp_error
23- use mpp_mod, only : mpp_set_stack_size
23+ use mpp_mod, only : mpp_set_stack_size, mpp_exit
2424 use mpp_mod, only : mpp_transmit, mpp_sum, mpp_sync
2525 use mpp_mod, only : mpp_init_test_requests_allocated
2626 use mpp_domains_mod, only : GLOBAL_DATA_DOMAIN
@@ -33,7 +33,6 @@ program test_mpp_update_domains_ad
3333 use mpp_domains_mod, only : mpp_define_layout, mpp_define_domains, mpp_modify_domain
3434 use mpp_domains_mod, only : mpp_get_global_domain
3535 use platform_mod, only : r4 _kind, r8 _kind
36- use fms_mod, only : fms_end
3736
3837 implicit none
3938
@@ -60,8 +59,10 @@ program test_mpp_update_domains_ad
6059 call test_halo_update_ad_r4 (' Simple' )
6160
6261 call mpp_domains_exit()
63- ! > Finalize mpp and fms
64- call fms_end()
62+ ! test_level arg stops full init process, so this just needs to call mpi_finalize if using mpi
63+ #ifdef use_libMPI
64+ call MPI_FINALIZE(ierr)
65+ #endif
6566contains
6667 ! > test calling mpp_halo_update_ad on a 3D 64-bit real data array
6768 subroutine test_halo_update_ad_r8 ( test_type )
0 commit comments