"""
 Copyright (C) 2017 M.A.L. Marques

 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/.
"""

# type: mgga_exc
# prefix:
#   mgga_c_m06l_params *params;
#
#   assert(p->params != NULL);
#   params = (mgga_c_m06l_params * )(p->params);

from libxc_codegen import *  # noqa: F401, F403

include('mgga_c_vsxc')
include('mgga_c_m05')

@helper
def m06l_f(rs, z, xs0, xs1, ts0, ts1):
    return (
        + m05_f(rs, z, xs0, xs1, ts0, ts1)
        + vsxc_f(rs, z, xs0, xs1, ts0, ts1)
    )

def f(rs, z, xt, xs0, xs1, us0, us1, ts0, ts1):
    return m06l_f(rs, z, xs0, xs1, ts0, ts1)

TYPE = "mgga_exc"
PARAMS_STRUCT = "mgga_c_m06l_params"
