-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from NWChemEx/deriv_ptypes
Provisional Derivative Property Types
- Loading branch information
Showing
6 changed files
with
146 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright 2023 NWChemEx-Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#pragma once | ||
#include "../export_simde.hpp" | ||
#include <pluginplay/pluginplay.hpp> | ||
#include <simde/derivative/derivative.hpp> | ||
|
||
namespace simde { | ||
|
||
inline void export_derivative(python_module_reference m) { | ||
EXPORT_PROPERTY_TYPE(EnergyNuclearGradientStdVectorD, m); | ||
EXPORT_PROPERTY_TYPE(EnergyNuclearHessianStdVectorD, m); | ||
EXPORT_PROPERTY_TYPE(AOEnergyNuclearGradientStdVectorD, m); | ||
EXPORT_PROPERTY_TYPE(AOEnergyNuclearHessianStdVectorD, m); | ||
} | ||
|
||
} // namespace simde |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright 2023 NWChemEx-Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright 2023 NWChemEx-Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import simde | ||
from test_property_type import BaseTestPropertyType | ||
|
||
|
||
class TestEnergyNuclearGradientStdVectorD(BaseTestPropertyType): | ||
|
||
def setUp(self): | ||
self.pt = simde.EnergyNuclearGradientStdVectorD() | ||
self.input_labels = ["Chemical System", "Arg 1"] | ||
self.result_labels = ["Derivative"] | ||
|
||
|
||
class TestEnergyNuclearHessianStdVectorD(BaseTestPropertyType): | ||
|
||
def setUp(self): | ||
self.pt = simde.EnergyNuclearHessianStdVectorD() | ||
self.input_labels = ["Chemical System", "Arg 1", "Arg 2"] | ||
self.result_labels = ["Derivative"] | ||
|
||
|
||
class TestAOEnergyNuclearGradientStdVectorD(BaseTestPropertyType): | ||
|
||
def setUp(self): | ||
self.pt = simde.AOEnergyNuclearGradientStdVectorD() | ||
self.input_labels = ["AOs", "Chemical System", "Arg 1"] | ||
self.result_labels = ["Derivative"] | ||
|
||
|
||
class TestAOEnergyNuclearHessianStdVectorD(BaseTestPropertyType): | ||
|
||
def setUp(self): | ||
self.pt = simde.AOEnergyNuclearHessianStdVectorD() | ||
self.input_labels = ["AOs", "Chemical System", "Arg 1", "Arg 2"] | ||
self.result_labels = ["Derivative"] |