Commit 9bd201b1 authored by Nabil Chouika's avatar Nabil Chouika
Browse files

refs#16

In NumA++:
- Added -pedantic flag in CMakeLists for warnings.
- Moved LinAlgUtils to parent folder.
- Added LSMR iterative algorithm for sparse least-squares problems, taken from https://github.com/tvercaut/LSQR-cpp (APACHE licence) and adapted to fit into NumA.

In NumA++_Test:
- Added -pedantic flag in CMakeLists for warnings.
- Added test for LSMR also taken from github.

In PARTONS:
- Added -pedantic flag in CMakeLists for warnings.
- Converted one observable scenario to the new cross configuration.
- Various modifications and additions to the Radon Inverse files. Now, the DoubleDistribution modules are not needed anymore. It was too complicated to deal with... But it's still possible to use them I guess.
- Renamed the Radon Inverse daughter class because the brute-force approach was dropped in favor of a fixed number of rows for the matrix.

In PARTONS_exe:
- Added -pedantic flag in CMakeLists for warnings.
- Updated partons.properties to the new scheme.
- Added a test for the Radon inversion.

In PARTONS_release:
- Added -pedantic flag in CMakeLists for warnings.
- Added a scenario for GPD.
- Close PARTONS properly when exception.
parent c68b976f
......@@ -4,8 +4,8 @@ cmake_minimum_required(VERSION 2.6)
project(PARTONS_release CXX)
# Force C++98
add_definitions(-std=c++98)
# Force C++98 warnings
add_definitions(-std=c++98 -pedantic)
# Tell CMake to run moc when necessary:
set(CMAKE_AUTOMOC ON)
......
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<scenario date="2016-03-25" description="For non regression purpose : computation of GK11 GPD model without evolution with a list of fixed and random kinematics.">
<task service="GPDService" method="computeGPDModel" storeInDB="0">
<kinematics type="GPDKinematic">
<param name="x" value="-0.99" />
<param name="xi" value="0.99" />
<param name="t" value="0" />
<param name="MuF2" value="1" />
<param name="MuR2" value="1" />
</kinematics>
<computation_configuration>
<module type="GPDModule" name="MMS13Model" />
</computation_configuration>
</task>
<task service="GPDService" method="printResults">
</task>
</scenario>
\ No newline at end of file
......@@ -48,8 +48,16 @@ int main(int argc, char** argv) {
// If there is an exception
} catch (const ElemUtils::CustomException &e) {
pPartons->getLoggerManager()->error(e);
// Close PARTONS application propertly
if (pPartons) {
pPartons->close();
}
} catch (const std::exception &e) {
pPartons->getLoggerManager()->error("main", __func__, e.what());
// Close PARTONS application propertly
if (pPartons) {
pPartons->close();
}
}
// Close PARTONS application propertly
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment