(git:ed6f26b)
Loading...
Searching...
No Matches
grpp_init_finalize.c
Go to the documentation of this file.
1/*----------------------------------------------------------------------------*/
2/* CP2K: A general program to perform molecular dynamics simulations */
3/* Copyright 2000-2025 CP2K developers group <https://cp2k.org> */
4/* */
5/* SPDX-License-Identifier: MIT */
6/*----------------------------------------------------------------------------*/
7
8/*
9 * libgrpp - a library for the evaluation of integrals over
10 * generalized relativistic pseudopotentials.
11 *
12 * Copyright (C) 2021-2023 Alexander Oleynichenko
13 */
14
15#include "libgrpp.h"
16
19
20static int libgrpp_initialized = 0;
21
22/**
23 * thread-safe initialization
24 */
26#pragma omp critical
27 {
28 if (libgrpp_initialized == 0) {
31
33 }
34 }
35}
36
38
39/**
40 * thread-safe finalization
41 */
43#pragma omp critical
44 {
45 if (libgrpp_initialized == 1) {
47 }
48 }
49}
static int libgrpp_initialized
void libgrpp_init()
void libgrpp_pretabulate_bessel()
void libgrpp_finalize()
void libgrpp_create_real_spherical_harmonic_coeffs_tables(int Lmax)
int libgrpp_is_initialized()