Skip to content
Snippets Groups Projects
Commit d3f3d5f9 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Use internal interfaces by linking to corresponding objects.

parent 50e39dbb
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,25 @@ FCLINK = $(LIBTOOL) $(AM_V_lt) --tag=FC $(AM_LIBTOOLFLAGS) \
test_arithmetic_long_SOURCES = test_arithmetic_long.c
test_arithmetic_long_LDADD = libtestutil.la
test_exchanger_parallel_SOURCES = test_exchanger_parallel.c tests.h
test_exchanger_parallel_LDADD = libtestutil.la \
../src/xt_config.lo \
../src/xt_exchanger_irecv_isend.lo \
../src/xt_exchanger_irecv_send.lo \
../src/xt_exchanger_irecv_isend_packed.lo \
../src/xt_exchanger_mix_isend_irecv.lo \
../src/xt_exchanger_simple_base.lo
if USE_MPI3
test_exchanger_parallel_LDADD += ../src/xt_exchanger_neigh_alltoall.lo
endif
test_exchanger_parallel_LDADD += ../src/xt_exchanger.lo \
../src/xt_redist_msg.lo \
../src/xt_request_msgs.lo \
../src/xt_request_msgs_packed.lo \
../src/xt_request.lo \
../src/xt_mpi.lo \
../src/core/xmalloc.lo \
../src/core/core.lo $(MPI_C_LIB)
test_idxempty_SOURCES = test_idxempty.c tests.h test_idxlist_utils.h
test_idxempty_f_SOURCES = test_idxempty_f.f90
test_idxempty_f_LDADD = $(XT_FC_LDADD)
......
......@@ -56,7 +56,6 @@
#include <unistd.h>
#include <mpi.h>
#include <yaxt.h>
#include "../src/xt_exchanger.h"
#include "../src/xt_exchanger_irecv_send.h"
......@@ -65,6 +64,8 @@
#include "../src/xt_exchanger_irecv_isend_packed.h"
#include "../src/xt_exchanger_neigh_alltoall.h"
#include "../src/xt_redist_internal.h"
#include "../src/xt_mpi_internal.h"
#include "../src/xt_config_internal.h"
#include "core/ppm_xfuncs.h"
#include "test_redist_common.h"
......@@ -99,7 +100,8 @@ int main(int argc, char **argv)
// init mpi
xt_mpi_call(MPI_Init(&argc, &argv), MPI_COMM_WORLD);
xt_initialize(MPI_COMM_WORLD);
xt_mpi_init();
xt_config_defaults_init();
Xt_exchanger_new *exchangers_new = parse_options(&argc, &argv);
Xt_config config = xt_config_new();
......@@ -119,7 +121,9 @@ int main(int argc, char **argv)
}
xt_config_delete(config);
free(exchangers_new);
xt_finalize();
xt_mpi_finalize();
MPI_Finalize();
return TEST_EXIT_CODE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment