Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mlee03 authored and mlee03 committed May 17, 2024
1 parent 5f849f5 commit 583e74a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 95 deletions.
4 changes: 2 additions & 2 deletions tools/fregrid_acc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ LDADD = $(NETCDF_LDFLAGS) $(NETCDF_LIBS) $(RPATH_FLAGS)

fregrid_acc_SOURCES = conserve_interp_acc.c \
conserve_interp_acc.h \
fregrid_utils_acc.c \
fregrid_utils_acc.h \
interp_utils_acc.c \
interp_utils_acc.h \
fregrid_acc.c

fregrid_acc_LDADD = $(top_builddir)/tools/fregrid/fregrid_util.o \
Expand Down
6 changes: 1 addition & 5 deletions tools/fregrid_acc/conserve_interp_acc.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,12 @@
#include <string.h>
#include <netcdf.h>
#include <math.h>
#include <openacc.h>
#include "constant.h"
#include "globals.h"
#include "create_xgrid_acc.h"
#include "create_xgrid_utils_acc.h"
#include "mosaic_util.h"
#include "conserve_interp.h"
#include "conserve_interp_acc.h"
#include "fregrid_util.h"
#include "fregrid_utils_acc.h"
#include "interp_utils_acc.h"
#include "mpp.h"
#include "mpp_io.h"
#include "read_mosaic.h"
Expand Down
11 changes: 5 additions & 6 deletions tools/fregrid_acc/fregrid_acc.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@
#include <math.h>
#include <time.h>
#include "globals.h"
#include "constant.h"
#include "read_mosaic.h"
#include "mpp_io.h"
#include "mpp.h"
#include "mosaic_util.h"
#include "conserve_interp.h"
#include "conserve_interp_acc.h"
#include "bilinear_interp.h"
#include "fregrid_util.h"

Expand Down Expand Up @@ -952,7 +951,7 @@ int main(int argc, char* argv[])
setup_bilinear_interp(ntiles_in, grid_in, ntiles_out, grid_out, interp, opcode, dlon_in, dlat_in, lonbegin_in, latbegin_in );
}
else
setup_conserve_interp(ntiles_in, grid_in, ntiles_out, grid_out, interp, opcode);
setup_conserve_interp_acc(ntiles_in, grid_in, ntiles_out, grid_out, interp, opcode);
if(debug) {
time_end = clock();
time_setup_interp = 1.0*(time_end - time_start)/CLOCKS_PER_SEC;
Expand Down Expand Up @@ -1016,7 +1015,7 @@ int main(int argc, char* argv[])
if( opcode & BILINEAR )
do_scalar_bilinear_interp(interp, l, ntiles_in, grid_in, grid_out, scalar_in, scalar_out, finer_step, fill_missing);
else
do_scalar_conserve_interp(interp, l, ntiles_in, grid_in, ntiles_out, grid_out, scalar_in, scalar_out, opcode, scalar_in->var[l].nz);
do_scalar_conserve_interp_acc(interp, l, ntiles_in, grid_in, ntiles_out, grid_out, scalar_in, scalar_out, opcode, scalar_in->var[l].nz);
if(vertical_interp) do_vertical_interp(&vgrid_in, &vgrid_out, grid_out, scalar_out, l);
write_field_data(ntiles_out, scalar_out, grid_out, l, -1, level_n, m);
if(scalar_out->var[l].interp_method == CONSERVE_ORDER2) {
Expand Down Expand Up @@ -1046,7 +1045,7 @@ int main(int argc, char* argv[])
if( opcode & BILINEAR )
do_scalar_bilinear_interp(interp, l, ntiles_in, grid_in, grid_out, scalar_in, scalar_out, finer_step, fill_missing);
else
do_scalar_conserve_interp(interp, l, ntiles_in, grid_in, ntiles_out, grid_out, scalar_in, scalar_out, opcode,1);
do_scalar_conserve_interp_acc(interp, l, ntiles_in, grid_in, ntiles_out, grid_out, scalar_in, scalar_out, opcode,1);
if(debug) {
time_end = clock();
time_do_interp += 1.0*(time_end - time_start)/CLOCKS_PER_SEC;
Expand Down Expand Up @@ -1083,7 +1082,7 @@ int main(int argc, char* argv[])
if( opcode & BILINEAR )
do_vector_bilinear_interp(interp, l, ntiles_in, grid_in, ntiles_out, grid_out, u_in, v_in, u_out, v_out, finer_step, fill_missing);
else
do_vector_conserve_interp(interp, l, ntiles_in, grid_in, ntiles_out, grid_out, u_in, v_in, u_out, v_out, opcode);
do_vector_conserve_interp_acc(interp, l, ntiles_in, grid_in, ntiles_out, grid_out, u_in, v_in, u_out, v_out, opcode);

write_field_data(ntiles_out, u_out, grid_out, l, level_z, level_n, m);
write_field_data(ntiles_out, v_out, grid_out, l, level_z, level_n, m);
Expand Down
54 changes: 0 additions & 54 deletions tools/fregrid_acc/fregrid_utils_acc.c

This file was deleted.

28 changes: 0 additions & 28 deletions tools/fregrid_acc/fregrid_utils_acc.h

This file was deleted.

0 comments on commit 583e74a

Please sign in to comment.