Skip to content

Commit bb5c7d4

Browse files
committed
fix unit tests
1 parent 21bc58e commit bb5c7d4

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

UnitTests/test_driver.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,12 @@ int main(int argc, char *argv[]) {
3838

3939
/*--- Startup MPI, if supported ---*/
4040
#ifdef HAVE_MPI
41-
int buffsize;
42-
char *buffptr;
4341
#ifdef HAVE_OMP
4442
int provided;
4543
SU2_MPI::Init_thread(&argc, &argv, MPI_THREAD_FUNNELED, &provided);
4644
#else
4745
SU2_MPI::Init(&argc, &argv);
4846
#endif
49-
SU2_MPI::Buffer_attach( malloc(BUFSIZE), BUFSIZE );
5047
SU2_Comm MPICommunicator(MPI_COMM_WORLD);
5148
#else
5249
SU2_Comm MPICommunicator(0);
@@ -56,11 +53,7 @@ int main(int argc, char *argv[]) {
5653
int result = Catch::Session().run(argc, argv);
5754

5855
/*--- Finalize MPI parallelization ---*/
59-
#ifdef HAVE_MPI
60-
SU2_MPI::Buffer_detach(&buffptr, &buffsize);
61-
free(buffptr);
6256
SU2_MPI::Finalize();
63-
#endif
6457

6558
return result;
6659
}

0 commit comments

Comments
 (0)