/*
 Copyright (C) 2006-2007 M.A.L. Marques
               2021 Susi Lehtola

 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

#include "util.h"

#define XC_HYB_LDA_XC_BN05   588   /* Baer and Neuhauser, gamma=1 */

#include "maple2c/lda_exc/hyb_lda_xc_bn05.c"
#include "work_lda.c"

#define N_PAR 1
static const char  *names[N_PAR]  = {"_omega"};
static const char  *desc[N_PAR]   = {
  "Range separation parameter"
};

static const double par_bn05[N_PAR] = {1.0};

static void
hyb_lda_xc_bn05_init(xc_func_type *p)
{
  xc_hyb_init_camy(p, 0.0, 0.0, 0.0);
}

static void
bn05_set_ext_params(xc_func_type *p, const double *ext_params)
{
  double omega;

  assert(p != NULL);
  /* 100% long-range exchange; only range-separation parameter */
  set_ext_params_lcy(p, ext_params);
}


#ifdef __cplusplus
extern "C"
#endif
const xc_func_info_type xc_func_info_hyb_lda_xc_bn05 = {
  XC_HYB_LDA_XC_BN05,
  XC_EXCHANGE_CORRELATION,
  "Baer and Neuhauser, gamma=1",
  XC_FAMILY_HYB_LDA,
  {&xc_ref_Baer2005_043002, NULL, NULL, NULL, NULL},
  XC_FLAGS_3D | XC_FLAGS_HYB_CAMY | MAPLE2C_FLAGS,
  1e-15,
  {N_PAR, names, desc, par_bn05, bn05_set_ext_params},
  hyb_lda_xc_bn05_init, NULL,
  &work_lda, NULL, NULL
};
