Skip to content

Commit 032107f

Browse files
committed
Remove openmp part
1 parent a1707bb commit 032107f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

source/module_base/tool_quit.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,6 @@ void QUIT(int ret)
5757
std::cout<<" See output information in : "<<PARAM.globalv.global_out_dir<<std::endl;
5858
#endif
5959

60-
#ifdef _OPENMP // merge all threads of one process into one thread
61-
if (omp_in_parallel())
62-
{
63-
omp_set_num_threads(1);
64-
std::cout << "Terminating ABACUS with multithreading environment." << std::endl;
65-
}
66-
assert(!omp_in_parallel()); /* avoid the case that death thread calls fork() */
67-
#endif
68-
6960
#ifdef __MPI /* if it is MPI run, finalize first, then exit */
7061
std::cout << "Terminating ABACUS with multiprocessing environment." << std::endl;
7162
Parallel_Global::finalize_mpi();

0 commit comments

Comments
 (0)