Skip to content

Testing the ddCOSMO code - #3

Merged
arnfinn merged 7 commits into
PCMSolver:masterfrom
robertodr:cmake-test
Apr 7, 2017
Merged

arnfinn merged 7 commits into
PCMSolver:masterfrom
robertodr:cmake-test

Conversation

@robertodr

@robertodr robertodr commented Apr 5, 2017 •

Copy link
Copy Markdown
Member

This PR aims to add proper testing for the ddCOSMO code.

Description

Rework the example into a test and provide the infrastructure necessary for automated testing.

Todos

  • Developer Interest
  • Use CTest for testing
  • Rework example into a test using runtest
  • Add support for Travis CI. PRs will from now on be checked by continuous integration.
  • Use Fortran 90 version of Lebedev-Laikov grid generation
  • Provide compiler flags also for PGI compilers.
    • Compiler flags are set through the function set_compiler_flag that checks that the flags are actually available and working for the current compiler.

Questions

  • @bast I think the way I hooked up with runtest is clumsy, but correct. Could you have a look?

Status

IMPORTANT Before merging change the status badge in README.md to [![Build Status](https://travis-ci.org/PCMSolver/ddPCM.svg?branch=master)](https://travis-ci.org/PCMSolver/ddPCM) to get the correct status badge.

  • Ready to go

The code is taken from John Burkardt's website. Unlike the CCL code,
the scaling of the weights happens _outside_ the grid generation
subroutine, i.e. it now happens in ddcosmo.f90.
We enforce Fortran 2003 compliance _via_ the respective compiler flag.
Comment thread tests/ddCOSMO_Fortran/test.py Outdated
# we stop the script if the major version is not compatible
assert version_info.major == 2

# construct a filter list which contains two filters

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case one filter, not two.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the comment.

@bast

bast commented Apr 5, 2017

Copy link
Copy Markdown
Member

What part about the runtest integration feels clumsy? I had a quick look but wanted to know what feels not completely right to you.

@robertodr

Copy link
Copy Markdown
Member Author

I guess it felt clumsy because there is no launcher script to wrap in runtest_config.py, thus the returned tuple contains full_command twice.

@bast

bast commented Apr 5, 2017

Copy link
Copy Markdown
Member

Aha - I see, I overlooked that. I will check what we can do about it.

@robertodr robertodr changed the title [WIP] Testing the ddCOSMO code Testing the ddCOSMO code Apr 7, 2017
@robertodr

Copy link
Copy Markdown
Member Author

The compiler flags selection mechanism needs a bit more testing on Intel and PGI. Opening an issue for it.

@arnfinn
arnfinn merged commit 0e29598 into PCMSolver:master Apr 7, 2017
@robertodr robertodr mentioned this pull request Apr 7, 2017
@robertodr
robertodr deleted the cmake-test branch April 7, 2017 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants