Skip to content

Commit 28bf363

Browse files
committed
Fix minor issues
1 parent d7549c0 commit 28bf363

5 files changed

Lines changed: 15 additions & 7 deletions

File tree

include/gauxc/load_balancer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ extern GauXCLoadBalancer gauxc_load_balancer_factory_get_instance(
104104

105105
/**
106106
* @brief Create a new shared LoadBalancer instance from a LoadBalancerFactory.
107+
* @param status Status object to capture any errors.
107108
* @param factory Handle to the LoadBalancerFactory.
108109
* @param env Handle to the RuntimeEnvironment.
109110
* @param mol Handle to the Molecule.

include/gauxc/molecule.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
#include <gauxc/atom.h>
2626

2727
#ifdef __cplusplus
28-
extern "C" {
2928
namespace GauXC::C {
29+
extern "C" {
3030
#endif
3131

3232
/**
@@ -69,6 +69,6 @@ extern void gauxc_molecule_delete(GauXCStatus* status, GauXCMolecule* mol );
6969
extern size_t gauxc_molecule_natoms(GauXCStatus* status, const GauXCMolecule mol );
7070

7171
#ifdef __cplusplus
72-
} // namespace GauXC::C
7372
} // extern "C"
73+
} // namespace GauXC::C
7474
#endif

include/gauxc/xc_integrator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ extern void gauxc_integrator_eval_exc_vxc_rks(
203203
* @param density_matrix_z Density matrix container for spin density.
204204
* @param exc Pointer to store the exchange-correlation energy.
205205
* @param vxc_matrix_s Matrix container to store the exchange-correlation potential for total density.
206-
* @param vxc_matrix_z Matrix container to store the exchange-correlation potential for spin density
206+
* @param vxc_matrix_z Matrix container to store the exchange-correlation potential for spin density.
207207
*/
208208
extern void gauxc_integrator_eval_exc_vxc_uks(
209209
GauXCStatus* status,

src/c_xc_integrator.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ GauXCIntegratorFactory gauxc_integrator_factory_new(
5454
const char* reduction_kernel_name
5555
) {
5656
GauXCIntegratorFactory factory{};
57+
factory.hdr = GauXCHeader{GauXC_Type_IntegratorFactory};
5758
factory.ptr = nullptr;
5859

5960
try {
@@ -79,6 +80,7 @@ GauXCIntegrator gauxc_integrator_factory_get_instance(
7980
const GauXCLoadBalancer lb
8081
) {
8182
GauXCIntegrator integrator{};
83+
integrator.hdr = GauXCHeader{GauXC_Type_Integrator};
8284
integrator.ptr = nullptr;
8385
integrator.owned = true;
8486

@@ -99,6 +101,7 @@ GauXCIntegrator gauxc_integrator_factory_get_shared_instance(
99101
const GauXCLoadBalancer lb
100102
) {
101103
GauXCIntegrator integrator{};
104+
integrator.hdr = GauXCHeader{GauXC_Type_Integrator};
102105
integrator.ptr = nullptr;
103106
integrator.owned = false;
104107

tests/moltypes_test.cxx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,14 @@ TEST_CASE("Molecule", "[moltypes]") {
7171

7272
#if GAUXC_HAS_C
7373
SECTION("Default C") {
74-
C::GauXCMolecule mol = C::gauxc_molecule_new();
75-
CHECK(C::gauxc_molecule_natoms(mol) == 0);
76-
77-
C::gauxc_molecule_delete(mol);
74+
C::GauXCStatus = status;
75+
C::GauXCMolecule mol = C::gauxc_molecule_new(&status);
76+
CHECK(status.code == 0);
77+
CHECK(C::gauxc_molecule_natoms(&status, mol) == 0);
78+
CHECK(status.code == 0);
79+
80+
C::gauxc_molecule_delete(&status, &mol);
81+
CHECK(status.code == 0);
7882
}
7983
#endif
8084

0 commit comments

Comments
 (0)