Skip to content

Commit

Permalink
Release 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
reiher-research-group committed Nov 20, 2023
1 parent a1009ec commit de47ed1
Show file tree
Hide file tree
Showing 30 changed files with 59 additions and 37 deletions.
12 changes: 9 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

Release 6.0.0
-------------

- Improve support for compilation on Windows (MSVC)
- Update address in license

Release 5.0.0
-------------

Expand All @@ -9,10 +15,10 @@ Release 5.0.0
Release 4.1.0
-------------

- Add new interface ``EmbeddingCalculator``. This class is derived from
the calculator class and allows for embedding calculations with different
- Add new interface ``EmbeddingCalculator``. This class is derived from
the calculator class and allows for embedding calculations with different
underlying calculators.

Release 4.0.2
-------------

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.9)
# tree must then provide a properly namespaced target with the same name as
# your project.
project(Core
VERSION 5.0.0
VERSION 6.0.0
DESCRIPTION "Module management and core interface definitions"
)

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ from members of the Reiher research group.
Further Contributors
--------------------

So far, no one else has contributed to this repository.
- Juuso Lehtivarjo, NMR Solutions Ltd.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group
Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Expand Down
4 changes: 4 additions & 0 deletions src/Core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ target_link_libraries(Core
${CMAKE_DL_LIBS}
)

if(MSVC)
target_compile_definitions(Core PUBLIC BOOST_ALL_NO_LIB)
endif()

macro(determine_lib_type target)
get_target_property(LIB_TYPE ${target} TYPE)
if("${LIB_TYPE}" STREQUAL "UNKNOWN_LIBRARY")
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core/BaseClasses/ObjectWithLog.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core/BaseClasses/ObjectWithStructure.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef CORE_OBJECTWITHSTRUCTURE_H
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Core/BaseClasses/StateHandableObject.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file StateHandableObject.h
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef CORE_STATEHANDABLEOBJECT_H_
Expand Down Expand Up @@ -57,7 +57,7 @@ class StateHandableObject {
* @brief Get the current state of the object.
*
* Note that the state is possibly a mutable representation of the current state
* of the object.It is not necessarily a deepcopy, eventhough this is likely the
* of the object. It is not necessarily a deepcopy, eventhough this is likely the
* default behaviour. Please read the documentation of the specific
* implementation for further details.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core/DerivedModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file
* @brief Provides helpers for the general implementation of classes deriving from Module
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core/Exceptions.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file Exceptions.h
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef CORE_EXCEPTIONS_H_
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core/ExportControl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file ExportControl.h
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef CORE_EXPORTCONTROL_H_
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core/Impl/ModuleManager.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/

Expand Down
7 changes: 6 additions & 1 deletion src/Core/Core/Interfaces/Calculator.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file Calculator.h
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef CORE_CALCULATOR_H_
Expand Down Expand Up @@ -119,6 +119,11 @@ class Calculator : public StateHandableObject,
return calculatorPtr->supportsMethodFamily(methodFamily);
};
}
/**
* @brief Whether the calculator has no underlying Python code and can therefore
* release the global interpreter lock in Python bindings
*/
virtual bool allowsPythonGILRelease() const = 0;

private:
/*
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core/Interfaces/CalculatorWithReference.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file Calculator.h
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef CORE_CALCULATORWITHREFERENCE_H
Expand Down
9 changes: 7 additions & 2 deletions src/Core/Core/Interfaces/EmbeddingCalculator.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file Calculator.h
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef CORE_EMBEDDINGCALCULATOR_H
Expand Down Expand Up @@ -40,7 +40,12 @@ class EmbeddingCalculator : public Calculator {
* @brief Accessor for the underlying calculators.
* @return std::vector<std::shared_ptr<Calculator>> A vector of underlying calculators.
*/
virtual std::vector<std::shared_ptr<Calculator>> getUnderlyingCalculators() = 0;
virtual std::vector<std::shared_ptr<Calculator>> getUnderlyingCalculators() const = 0;
/**
* @brief Passes the settings of the underlying calculators to the settings of the embedding calculator.
* @note In the derived class, care must be taken that the underlying calculators have been set before.
*/
virtual void addUnderlyingSettings() = 0;
/// @brief Default destructor.
virtual ~EmbeddingCalculator() = default;

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core/Interfaces/MMParametrizer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file MMParametrizer.h
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core/Interfaces/ObjectWithOrbitals.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef CORE_OBJECTWITHORBITALS_H
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core/Interfaces/WavefunctionOutputGenerator.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef CORE_WAVEFUNCTIONOUTPUTGENERATOR_H
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core/Log.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef INCLUDE_SCINE_UTILS_LOG_H
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core/Module.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file Module.h
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef CORE_MODULE_H_
Expand Down
7 changes: 6 additions & 1 deletion src/Core/Core/ModuleManager.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file ModuleManager.cpp
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/

Expand All @@ -12,6 +12,11 @@
namespace Scine {
namespace Core {

ModuleManager& ModuleManager::getInstance() {
static ModuleManager instance;
return instance;
}

void ModuleManager::load(const boost::filesystem::path& libraryPath) {
_impl->load(libraryPath);
}
Expand Down
7 changes: 2 additions & 5 deletions src/Core/Core/ModuleManager.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file ModuleManager.h
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/

Expand Down Expand Up @@ -52,10 +52,7 @@ class CORE_EXPORT ModuleManager {
*
* @return Returns a reference to the ModuleManager instance.
*/
static ModuleManager& getInstance() {
static ModuleManager instance;
return instance;
}
static ModuleManager& getInstance();

/**
* @brief Deleted copy constructor, as required by the singleton design pattern.
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Tests/CoreTests.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file CoreTests.cpp
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#include "DummyInterface.h"
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Tests/DummyInterface.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file DummyInterfaceAndModels.h
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef DUMMY_INTERFACE_H
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Tests/DummyModels.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file DummyModels.cpp
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#include "DummyModels.h"
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Tests/DummyModels.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file DummyInterfaceAndModels.h
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/
#ifndef DUMMY_MODELS_H
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Tests/Log.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Tests/SampleModule.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file SampleModule.cpp
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*
* Steps to your own module implementation:
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Tests/SampleModule.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file SampleModule.h
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.\n
* See LICENSE.txt for details.
*
*
Expand Down

0 comments on commit de47ed1

Please sign in to comment.