Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c2b5d43
Use labelling to dispatch Green's functions
robertodr Aug 26, 2017
b46dd66
Clean up, MPL almost completely out
robertodr Nov 22, 2017
63af6f5
Trim and uppercase strings w/o Boost
robertodr Aug 9, 2017
72bb63c
Further clean-up, MPL fully out
robertodr Nov 23, 2017
9304b48
License header added to utils/QuadratureRules.cpp
robertodr Nov 23, 2017
6b4427c
Remove unused headers
robertodr Nov 23, 2017
5c094d6
Fix comments from @MinazoBot
robertodr Nov 23, 2017
277b7ba
Clean up input from unreleased functionality
robertodr Nov 23, 2017
e6e19d1
Remove use of boost::math::sign
robertodr Nov 25, 2017
9b9804d
Provide workaround for erf and Legendre
robertodr Nov 25, 2017
d35da04
Update .gitattributes
robertodr Nov 25, 2017
3f8c0f7
Update .gitattributes
robertodr Nov 25, 2017
aa90cdf
Use std::map instead of flat_map
robertodr Nov 25, 2017
53b4800
Implement BOOST_FOREACH loops in C++11
robertodr Nov 25, 2017
84e5a15
Do not use Boost.Format
robertodr Nov 25, 2017
9a76321
Update Catch to v1.1.10
robertodr Nov 26, 2017
72510cc
Update README.md
robertodr Nov 27, 2017
eff7e7d
Fix docstrings in dielectric_profile [ci skip]
robertodr Nov 27, 2017
7105750
Use Xcode 8gm
robertodr Nov 27, 2017
ef83c97
Allow use of membrane profile
robertodr Nov 27, 2017
c0af86c
Fix use of enable_if
robertodr Nov 27, 2017
394e330
Remove boost::variant and boost::any
robertodr Nov 28, 2017
fd7fb7b
Devirtualize two functions
robertodr Nov 28, 2017
608e103
Drop GCC build on Mac
robertodr Dec 1, 2017
b63fa99
Add stub of in-house RK4 solver [ci skip]
robertodr Dec 8, 2017
d83186a
Indent CMakeLists.txt for easier diffs
robertodr Dec 28, 2017
166f8b9
Fix licensing in Legendre.hpp
robertodr Dec 28, 2017
68e5a25
RungeKutta4 class not ready for consumption
robertodr Dec 28, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ src/utils/*.hpp licensefile=.githooks/LICENSE-C++
src/utils/*.cpp licensefile=.githooks/LICENSE-C++
src/utils/cnpy.hpp !licensefile
src/utils/cnpy.cpp !licensefile
src/utils/legendre.h !licensefile
src/utils/Legendre.hpp !licensefile
src/utils/RungeKutta4.* !licensefile

# tests
tests/unit_tests.cpp licensefile=.githooks/LICENSE-C++
Expand Down
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@ matrix:
env:
- CXX_COMPILER='clang++'
- C_COMPILER='clang'
- Fortran_COMPILER='gfortran-5'
- Fortran_COMPILER='gfortran-6'
- BUILD_TYPE='release'
- PYTHON='python2'
- HOMEBREW_GCC='gcc@5'
- HOMEBREW_GCC='gcc@6'
- STATIC='--static'
- RUN_DANGER=false
- os: osx
osx_image: xcode7.3
env:
- CXX_COMPILER='g++-6'
- C_COMPILER='gcc-6'
- Fortran_COMPILER='gfortran-6'
- CXX_COMPILER='clang++'
- C_COMPILER='clang'
- Fortran_COMPILER='gfortran-7'
- BUILD_TYPE='release'
- PYTHON='python3'
- HOMEBREW_GCC='gcc@6'
- HOMEBREW_GCC='gcc@7'
- RUN_DANGER=false

- os: linux
Expand Down Expand Up @@ -107,7 +107,7 @@ install:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew update
brew install ${HOMEBREW_GCC} ${PYTHON} boost ccache cmake
brew install ${HOMEBREW_GCC} ${PYTHON} boost ccache cmake zlib
pip install virtualenv --upgrade
export PATH="/usr/local/opt/ccache/libexec:$PATH"
else
Expand Down
36 changes: 35 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,24 @@

### Changed

- Dispatching of Green’s functions in the factory is purely label-based. The
input reader generates a string that holds the type of the Green’s function,
the strategy for calculating its normal derivatives and the dielectric
profile (if needed): `TYPE_DERIVATIVE_PROFILE`. The Green’s functions are
subscribed to the factory using this label, which is then also the one used
for their creation. Iteration over _lists of types_ to dispatch the correct
template parameters is thus completely avoided. This removes the dependency
on the metafunctions in `ForId.hpp` and the dependency on Boost.MPL, the
Boost metaprogramming library.
- Dispatching of quadrature rules for the numerical boundary integral operator
has been rewritten, removing the dependency on Boost.MPL.
- The input wrapping data `struct`-s have been modified to include the string
defining the type of object and to remove now unused information.
- Documentation building is fully handled _via_ `sphinx-build`: CMake will no longer generate a `doc` build target.
- Simplified `.travis.yml` and got rid of Conda to handle multiple Python versions.
- The [Catch unit test framework](https://github.com/philsquared/Catch) has
been updated to its latest version still supporting C++03
[v1.11.0](https://github.com/philsquared/Catch/releases/tag/v1.11.0)

### Fixed

Expand All @@ -26,6 +42,24 @@
- `FortranCUtils` header and source files were removed. The `pcmsolver_f2c_string` and `pcmsolver_c2f_string`
functions are thus gone. For the former, use the replacement
`pcmsolver_fstring_to_carray` function provided in the Fortran bindings to the library.
- Some unused files have been removed:
* `Interpolation.hpp`
* `Interpolation.cpp`
* `Vector2.hpp`
* `Vector3.hpp`
* `ForId.hpp`
* `DerivativeUtils.hpp`
- The `cavityType()`, `solverType()`, `greenInsideType()`, `greenOutsideType()`
and `integratorType()` functions in the `Input` object have been removed.
This information is now wrapped into the corresponding input-wrapping
`struct`-s: `CavityData`, `SolverData`, `GreenData` and `BIOperatorData`.

### Deprecated

- We are in the process of removing the dependency on the Boost libraries. The
only dependency on Boost allowed in the 1.Y.Z release series will be for
replacing C++11 functionality that is missing from the C++98 standard. For
such code, we will require a pure C++11 counterpart.

## [Version 1.1.11] - 2017-10-25

Expand Down Expand Up @@ -378,7 +412,7 @@

## v1.0.0 - 2014-09-30 [YANKED]

[Unreleased]: https://github.com/PCMSolver/pcmsolver/compare/v1.1.11..HEAD
[Unreleased]: https://github.com/PCMSolver/pcmsolver/compare/v1.1.11...HEAD
[Version 1.1.11]: https://github.com/PCMSolver/pcmsolver/compare/v1.1.10...v1.1.11
[Version 1.1.10]: https://github.com/PCMSolver/pcmsolver/compare/v1.1.9...v1.1.10
[Version 1.1.9]: https://github.com/PCMSolver/pcmsolver/compare/v1.1.8...v1.1.9
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ Travis CI runs release builds using [ccache](https://ccache.samba.org/) to speed
with their Xcode 7.3.1 image.
The following compilers are used:

1. Apple Clang 7.3.0, GFortran 5.5.0, Python 2.7 This build generates _only_
1. Apple Clang 7.3.0, GFortran 6.4.0, Python 2.7 This build generates _only_
the static library.
2. GCC 6.4.0, Python 3.6 This build generates _both_ the shared and static
2. Apple Clang 7.3.0, GFortran 7.2.0, Python 3.6 This build generates _both_ the shared and static
libraries, linking executables to the former.

The build needed for submission to [Coverity scan](https://scan.coverity.com/)
Expand Down
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ in
gfortran
graphviz
lldb
python3Packages.docopt
python3Packages.matplotlib
python3Packages.numpy
python3Packages.pyyaml
Expand Down
14 changes: 14 additions & 0 deletions doc/code-reference/greens-functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ Green's functions objects relies on the Factory Method pattern
:cite:`Gamma1994,Alexandrescu2001`, implemented through the
generic Factory class.

The top-level header, _i.e._ to be included in client code, is `Green.hpp`.
The common interface to all Green's function classes is specified by the `IGreensFunction` class,
this is non-templated.
All other classes are templated. TODO: explain template parameters.
The Green's functions are registered to the factory based on a label encoding: type, derivative, and dielectric profile.
The only allowed labels are:
- `VACUUM_NUMERICAL`
- `VACUUM_DERIVATIVE`
- `VACUMM_GRADIENT`
- `VACUUM_HESSIAN`

- `SPHERICALDIFFUSE_TANH`
- `SPHERICALDIFFUSE_ERF`

.. image:: ../gfx/green.png
:scale: 70 %
:align: center
Expand Down
2 changes: 1 addition & 1 deletion doc/programmers/cmake-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is a brief guide to our CMake infrastructure which is managed

.. warning::

The minimum required CMake version is 2.8.8
The minimum required CMake version is 2.8.10

Adding new source subdirectories and/or files
---------------------------------------------
Expand Down
13 changes: 8 additions & 5 deletions doc/programmers/general-structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ General Structure
External libraries:

+ parts of the C++ `Boost <http://www.boost.org/>`_ libraries are used to provide
various functionality, like timing and metaprogramming.
various functionality, like ordinary differential equations integrators.
The source for the 1.54.0 release is shipped with the
module's source code. Some of the libraries used
need to be compiled. Boost is released under the terms
of the `Boost Software License, v1.0 <http://opensource.org/licenses/BSL-1.0>`_ (see also
http://www.boost.org/users/license.html) We encourage the use of
Boost whenever some functionality has already been coded within those
libraries. However, consider **carefully** the introduction of functionality
depending on compiler Boost libraries.
http://www.boost.org/users/license.html)

.. warning::

As of v1.1.11 we have started removing the dependency from Boost.
The use of Boost is thus deprecated.

+ the `Eigen <http://eigen.tuxfamily.org/index.php?title=Main_Page>`_ template
library for linear algebra. Almost every operation involving matrices and
vectors is performed through Eigen. Eigen provides convenient type
Expand Down
3 changes: 1 addition & 2 deletions doc/users/input.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ Cavity section keywords
* **Default**: empty string

Area
Average area (weight) of the surface partition for the GePol (TsLess)
cavity.
Average area (weight) of the surface partition for the GePol cavity.

* **Type**: double
* **Valid values**: :math:`d \geq 0.01\,\text{a.u.}^2`
Expand Down
Loading