Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloud_parcel example (+env_state::air_density accessor +making condensation logic accessible by setting -DPMC_USE_SUNDIALS="1" during compilation of PyPartMC) #339

Merged
merged 18 commits into from
Feb 14, 2024

Conversation

slayoo
Copy link
Member

@slayoo slayoo commented Feb 13, 2024

No description provided.

Copy link

CLANG WARNINGS:

error: no input files [clang-diagnostic-error]
error: no such file or directory: '/github/workspace/files/*.cpp' [clang-diagnostic-error]
error: unable to handle compilation, expected exactly one compiler job in '' [clang-diagnostic-error]

CPPCHECK WARNINGS:

CMakeLists.txt:9:5: error: Unmatched '('. Configuration: ''. [syntaxError]
file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
    ^
clang-tidy-report.txt:3:101: error: syntax error [syntaxError]
error: unable to handle compilation, expected exactly one compiler job in '' [clang-diagnostic-error]
                                                                                                    ^

Copy link

CLANG WARNINGS:

/github/workspace/files/src%2Fpypartmc.cpp:7:10: error: 'pybind11/pybind11.h' file not found [clang-diagnostic-error]
#include "pybind11/pybind11.h"
         ^~~~~~~~~~~~~~~~~~~~~
/github/workspace/files/src%2Fpypartmc.cpp:32:9: warning: function-like macro 'STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define STRINGIFY(x) #x
        ^
/github/workspace/files/src%2Fpypartmc.cpp:33:9: warning: function-like macro 'MACRO_STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define MACRO_STRINGIFY(x) STRINGIFY(x)
        ^
/github/workspace/files/src%2Fpypartmc.cpp:42:1: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
PYBIND11_MODULE(_PyPartMC, m) {
^
/github/workspace/files/src%2Fpypartmc.cpp:42:26: warning: all parameters should be named in a function [readability-named-parameter]
PYBIND11_MODULE(_PyPartMC, m) {
                         ^
                          /*unused*/  /*unused*/

CPPCHECK WARNINGS:

CMakeLists.txt:9:5: error: Unmatched '('. Configuration: ''. [syntaxError]
file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
    ^
clang-tidy-report.txt:14:31: error: Unmatched '{'. Configuration: ''. [syntaxError]
PYBIND11_MODULE(_PyPartMC, m) {
                              ^
src%2Fenv_state.F90:15:40: error: There is an unknown macro here somewhere. Configuration is required. If bind is a macro then please configure it. [unknownMacro]
    subroutine f_env_state_ctor(ptr_c) bind(C)
                                       ^
src%2Fenv_state.hpp:30:5: style: Struct 'EnvState' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
    EnvState(const nlohmann::json &json) :
    ^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]

Copy link

CLANG WARNINGS:

/github/workspace/files/src%2Fpypartmc.cpp:7:10: error: 'pybind11/pybind11.h' file not found [clang-diagnostic-error]
#include "pybind11/pybind11.h"
         ^~~~~~~~~~~~~~~~~~~~~
/github/workspace/files/src%2Fpypartmc.cpp:32:9: warning: function-like macro 'STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define STRINGIFY(x) #x
        ^
/github/workspace/files/src%2Fpypartmc.cpp:33:9: warning: function-like macro 'MACRO_STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define MACRO_STRINGIFY(x) STRINGIFY(x)
        ^
/github/workspace/files/src%2Fpypartmc.cpp:42:1: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
PYBIND11_MODULE(_PyPartMC, m) {
^
/github/workspace/files/src%2Fpypartmc.cpp:42:26: warning: all parameters should be named in a function [readability-named-parameter]
PYBIND11_MODULE(_PyPartMC, m) {
                         ^
                          /*unused*/  /*unused*/

CPPCHECK WARNINGS:

CMakeLists.txt:9:5: error: Unmatched '('. Configuration: ''. [syntaxError]
file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
    ^
README.md:10:83: error: No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]
For an outline of the project, rationale, architecture, and features, refer to: [D'Aquino et al., 2023 (arXiv)](https://doi.org/10.48550/arXiv.2308.02052) (please cite if PyPartMC is used in your research).
                                                                                  ^
clang-tidy-report.txt:14:31: error: Unmatched '{'. Configuration: ''. [syntaxError]
PYBIND11_MODULE(_PyPartMC, m) {
                              ^
src%2Fenv_state.F90:15:40: error: There is an unknown macro here somewhere. Configuration is required. If bind is a macro then please configure it. [unknownMacro]
    subroutine f_env_state_ctor(ptr_c) bind(C)
                                       ^
src%2Fenv_state.hpp:30:5: style: Struct 'EnvState' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
    EnvState(const nlohmann::json &json) :
    ^
tests%2Ftest_env_state.py:21:69: error: syntax error [syntaxError]
    @pytest.mark.parametrize("ctor_arg", (ENV_STATE_CTOR_ARG_MINIMAL,))
                                                                    ^
tests%2Ftest_run_part.py:31:5: error: syntax error: keyword 'return' is not allowed in global scope [syntaxError]
    return (
    ^
tests%2Ftest_scenario.py:307:9: error: syntax error [syntaxError]
        if len(data) == 2 and isinstance(data[1], dict) and len(data[1].keys()) == 1:
        ^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]

Copy link

CLANG WARNINGS:

/github/workspace/files/src%2Fpypartmc.cpp:7:10: error: 'pybind11/pybind11.h' file not found [clang-diagnostic-error]
#include "pybind11/pybind11.h"
         ^~~~~~~~~~~~~~~~~~~~~
/github/workspace/files/src%2Fpypartmc.cpp:32:9: warning: function-like macro 'STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define STRINGIFY(x) #x
        ^
/github/workspace/files/src%2Fpypartmc.cpp:33:9: warning: function-like macro 'MACRO_STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define MACRO_STRINGIFY(x) STRINGIFY(x)
        ^
/github/workspace/files/src%2Fpypartmc.cpp:42:1: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
PYBIND11_MODULE(_PyPartMC, m) {
^
/github/workspace/files/src%2Fpypartmc.cpp:42:26: warning: all parameters should be named in a function [readability-named-parameter]
PYBIND11_MODULE(_PyPartMC, m) {
                         ^
                          /*unused*/  /*unused*/

CPPCHECK WARNINGS:

CMakeLists.txt:9:5: error: Unmatched '('. Configuration: ''. [syntaxError]
file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
    ^
README.md:10:83: error: No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]
For an outline of the project, rationale, architecture, and features, refer to: [D'Aquino et al., 2023 (arXiv)](https://doi.org/10.48550/arXiv.2308.02052) (please cite if PyPartMC is used in your research).
                                                                                  ^
clang-tidy-report.txt:14:31: error: Unmatched '{'. Configuration: ''. [syntaxError]
PYBIND11_MODULE(_PyPartMC, m) {
                              ^
src%2Fenv_state.F90:15:40: error: There is an unknown macro here somewhere. Configuration is required. If bind is a macro then please configure it. [unknownMacro]
    subroutine f_env_state_ctor(ptr_c) bind(C)
                                       ^
src%2Fenv_state.hpp:30:5: style: Struct 'EnvState' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
    EnvState(const nlohmann::json &json) :
    ^
tests%2Ftest_env_state.py:21:69: error: syntax error [syntaxError]
    @pytest.mark.parametrize("ctor_arg", (ENV_STATE_CTOR_ARG_MINIMAL,))
                                                                    ^
tests%2Ftest_run_part.py:31:5: error: syntax error: keyword 'return' is not allowed in global scope [syntaxError]
    return (
    ^
tests%2Ftest_scenario.py:307:9: error: syntax error [syntaxError]
        if len(data) == 2 and isinstance(data[1], dict) and len(data[1].keys()) == 1:
        ^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]

Copy link

CLANG WARNINGS:

/github/workspace/files/src%2Fpypartmc.cpp:7:10: error: 'pybind11/pybind11.h' file not found [clang-diagnostic-error]
#include "pybind11/pybind11.h"
         ^~~~~~~~~~~~~~~~~~~~~
/github/workspace/files/src%2Fpypartmc.cpp:32:9: warning: function-like macro 'STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define STRINGIFY(x) #x
        ^
/github/workspace/files/src%2Fpypartmc.cpp:33:9: warning: function-like macro 'MACRO_STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define MACRO_STRINGIFY(x) STRINGIFY(x)
        ^
/github/workspace/files/src%2Fpypartmc.cpp:42:1: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
PYBIND11_MODULE(_PyPartMC, m) {
^
/github/workspace/files/src%2Fpypartmc.cpp:42:26: warning: all parameters should be named in a function [readability-named-parameter]
PYBIND11_MODULE(_PyPartMC, m) {
                         ^
                          /*unused*/  /*unused*/

CPPCHECK WARNINGS:

CMakeLists.txt:9:5: error: Unmatched '('. Configuration: ''. [syntaxError]
file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
    ^
README.md:10:83: error: No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]
For an outline of the project, rationale, architecture, and features, refer to: [D'Aquino et al., 2023 (arXiv)](https://doi.org/10.48550/arXiv.2308.02052) (please cite if PyPartMC is used in your research).
                                                                                  ^
clang-tidy-report.txt:14:31: error: Unmatched '{'. Configuration: ''. [syntaxError]
PYBIND11_MODULE(_PyPartMC, m) {
                              ^
src%2Fenv_state.F90:15:40: error: There is an unknown macro here somewhere. Configuration is required. If bind is a macro then please configure it. [unknownMacro]
    subroutine f_env_state_ctor(ptr_c) bind(C)
                                       ^
src%2Fenv_state.hpp:30:5: style: Struct 'EnvState' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
    EnvState(const nlohmann::json &json) :
    ^
tests%2Ftest_env_state.py:21:69: error: syntax error [syntaxError]
    @pytest.mark.parametrize("ctor_arg", (ENV_STATE_CTOR_ARG_MINIMAL,))
                                                                    ^
tests%2Ftest_run_part.py:31:5: error: syntax error: keyword 'return' is not allowed in global scope [syntaxError]
    return (
    ^
tests%2Ftest_scenario.py:307:9: error: syntax error [syntaxError]
        if len(data) == 2 and isinstance(data[1], dict) and len(data[1].keys()) == 1:
        ^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]

Copy link

CLANG WARNINGS:

/github/workspace/files/src%2Fpypartmc.cpp:7:10: error: 'pybind11/pybind11.h' file not found [clang-diagnostic-error]
#include "pybind11/pybind11.h"
         ^~~~~~~~~~~~~~~~~~~~~
/github/workspace/files/src%2Fpypartmc.cpp:32:9: warning: function-like macro 'STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define STRINGIFY(x) #x
        ^
/github/workspace/files/src%2Fpypartmc.cpp:33:9: warning: function-like macro 'MACRO_STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define MACRO_STRINGIFY(x) STRINGIFY(x)
        ^
/github/workspace/files/src%2Fpypartmc.cpp:42:1: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
PYBIND11_MODULE(_PyPartMC, m) {
^
/github/workspace/files/src%2Fpypartmc.cpp:42:26: warning: all parameters should be named in a function [readability-named-parameter]
PYBIND11_MODULE(_PyPartMC, m) {
                         ^
                          /*unused*/  /*unused*/

CPPCHECK WARNINGS:

CMakeLists.txt:9:5: error: Unmatched '('. Configuration: ''. [syntaxError]
file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
    ^
README.md:10:83: error: No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]
For an outline of the project, rationale, architecture, and features, refer to: [D'Aquino et al., 2023 (arXiv)](https://doi.org/10.48550/arXiv.2308.02052) (please cite if PyPartMC is used in your research).
                                                                                  ^
clang-tidy-report.txt:14:31: error: Unmatched '{'. Configuration: ''. [syntaxError]
PYBIND11_MODULE(_PyPartMC, m) {
                              ^
src%2Fenv_state.F90:15:40: error: There is an unknown macro here somewhere. Configuration is required. If bind is a macro then please configure it. [unknownMacro]
    subroutine f_env_state_ctor(ptr_c) bind(C)
                                       ^
src%2Fenv_state.hpp:30:5: style: Struct 'EnvState' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
    EnvState(const nlohmann::json &json) :
    ^
tests%2Ftest_env_state.py:21:69: error: syntax error [syntaxError]
    @pytest.mark.parametrize("ctor_arg", (ENV_STATE_CTOR_ARG_MINIMAL,))
                                                                    ^
tests%2Ftest_run_part.py:32:5: error: syntax error: keyword 'return' is not allowed in global scope [syntaxError]
    return (
    ^
tests%2Ftest_scenario.py:307:9: error: syntax error [syntaxError]
        if len(data) == 2 and isinstance(data[1], dict) and len(data[1].keys()) == 1:
        ^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]

Copy link

CLANG WARNINGS:

/github/workspace/files/src%2Fpypartmc.cpp:7:10: error: 'pybind11/pybind11.h' file not found [clang-diagnostic-error]
#include "pybind11/pybind11.h"
         ^~~~~~~~~~~~~~~~~~~~~
/github/workspace/files/src%2Fpypartmc.cpp:32:9: warning: function-like macro 'STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define STRINGIFY(x) #x
        ^
/github/workspace/files/src%2Fpypartmc.cpp:33:9: warning: function-like macro 'MACRO_STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define MACRO_STRINGIFY(x) STRINGIFY(x)
        ^
/github/workspace/files/src%2Fpypartmc.cpp:42:1: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
PYBIND11_MODULE(_PyPartMC, m) {
^
/github/workspace/files/src%2Fpypartmc.cpp:42:26: warning: all parameters should be named in a function [readability-named-parameter]
PYBIND11_MODULE(_PyPartMC, m) {
                         ^
                          /*unused*/  /*unused*/

CPPCHECK WARNINGS:

CMakeLists.txt:9:5: error: Unmatched '('. Configuration: ''. [syntaxError]
file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
    ^
README.md:10:83: error: No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]
For an outline of the project, rationale, architecture, and features, refer to: [D'Aquino et al., 2023 (arXiv)](https://doi.org/10.48550/arXiv.2308.02052) (please cite if PyPartMC is used in your research).
                                                                                  ^
clang-tidy-report.txt:14:31: error: Unmatched '{'. Configuration: ''. [syntaxError]
PYBIND11_MODULE(_PyPartMC, m) {
                              ^
src%2Fenv_state.F90:15:40: error: There is an unknown macro here somewhere. Configuration is required. If bind is a macro then please configure it. [unknownMacro]
    subroutine f_env_state_ctor(ptr_c) bind(C)
                                       ^
src%2Fenv_state.hpp:30:5: style: Struct 'EnvState' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
    EnvState(const nlohmann::json &json) :
    ^
tests%2Ftest_env_state.py:30:69: error: syntax error [syntaxError]
    @pytest.mark.parametrize("ctor_arg", (ENV_STATE_CTOR_ARG_MINIMAL,))
                                                                    ^
tests%2Ftest_run_part.py:33:5: error: syntax error: keyword 'return' is not allowed in global scope [syntaxError]
    return (
    ^
tests%2Ftest_scenario.py:307:9: error: syntax error [syntaxError]
        if len(data) == 2 and isinstance(data[1], dict) and len(data[1].keys()) == 1:
        ^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]

@slayoo slayoo changed the title set -DPMC_USE_SUNDIALS="1" during compilation of PyPartMC cloud_parcel example (+env_state::air_density accessor +making condensation logic accessible by setting -DPMC_USE_SUNDIALS="1" during compilation of PyPartMC) Feb 14, 2024
Copy link

CLANG WARNINGS:

/github/workspace/files/src%2Fpypartmc.cpp:7:10: error: 'pybind11/pybind11.h' file not found [clang-diagnostic-error]
#include "pybind11/pybind11.h"
         ^~~~~~~~~~~~~~~~~~~~~
/github/workspace/files/src%2Fpypartmc.cpp:32:9: warning: function-like macro 'STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define STRINGIFY(x) #x
        ^
/github/workspace/files/src%2Fpypartmc.cpp:33:9: warning: function-like macro 'MACRO_STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define MACRO_STRINGIFY(x) STRINGIFY(x)
        ^
/github/workspace/files/src%2Fpypartmc.cpp:42:1: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
PYBIND11_MODULE(_PyPartMC, m) {
^
/github/workspace/files/src%2Fpypartmc.cpp:42:26: warning: all parameters should be named in a function [readability-named-parameter]
PYBIND11_MODULE(_PyPartMC, m) {
                         ^
                          /*unused*/  /*unused*/

CPPCHECK WARNINGS:

CMakeLists.txt:9:5: error: Unmatched '('. Configuration: ''. [syntaxError]
file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
    ^
README.md:10:83: error: No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]
For an outline of the project, rationale, architecture, and features, refer to: [D'Aquino et al., 2023 (arXiv)](https://doi.org/10.48550/arXiv.2308.02052) (please cite if PyPartMC is used in your research).
                                                                                  ^
clang-tidy-report.txt:14:31: error: Unmatched '{'. Configuration: ''. [syntaxError]
PYBIND11_MODULE(_PyPartMC, m) {
                              ^
src%2Fenv_state.F90:15:40: error: There is an unknown macro here somewhere. Configuration is required. If bind is a macro then please configure it. [unknownMacro]
    subroutine f_env_state_ctor(ptr_c) bind(C)
                                       ^
src%2Fenv_state.hpp:30:5: style: Struct 'EnvState' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
    EnvState(const nlohmann::json &json) :
    ^
tests%2Ftest_env_state.py:24:69: error: syntax error [syntaxError]
    @pytest.mark.parametrize("ctor_arg", (ENV_STATE_CTOR_ARG_MINIMAL,))
                                                                    ^
tests%2Ftest_run_part.py:33:5: error: syntax error: keyword 'return' is not allowed in global scope [syntaxError]
    return (
    ^
tests%2Ftest_scenario.py:307:9: error: syntax error [syntaxError]
        if len(data) == 2 and isinstance(data[1], dict) and len(data[1].keys()) == 1:
        ^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]

Copy link

CLANG WARNINGS:

/github/workspace/files/src%2Fpypartmc.cpp:7:10: error: 'pybind11/pybind11.h' file not found [clang-diagnostic-error]
#include "pybind11/pybind11.h"
         ^~~~~~~~~~~~~~~~~~~~~
/github/workspace/files/src%2Fpypartmc.cpp:32:9: warning: function-like macro 'STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define STRINGIFY(x) #x
        ^
/github/workspace/files/src%2Fpypartmc.cpp:33:9: warning: function-like macro 'MACRO_STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define MACRO_STRINGIFY(x) STRINGIFY(x)
        ^
/github/workspace/files/src%2Fpypartmc.cpp:42:1: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
PYBIND11_MODULE(_PyPartMC, m) {
^
/github/workspace/files/src%2Fpypartmc.cpp:42:26: warning: all parameters should be named in a function [readability-named-parameter]
PYBIND11_MODULE(_PyPartMC, m) {
                         ^
                          /*unused*/  /*unused*/

CPPCHECK WARNINGS:

CMakeLists.txt:9:5: error: Unmatched '('. Configuration: ''. [syntaxError]
file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
    ^
README.md:10:83: error: No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]
For an outline of the project, rationale, architecture, and features, refer to: [D'Aquino et al., 2023 (arXiv)](https://doi.org/10.48550/arXiv.2308.02052) (please cite if PyPartMC is used in your research).
                                                                                  ^
clang-tidy-report.txt:14:31: error: Unmatched '{'. Configuration: ''. [syntaxError]
PYBIND11_MODULE(_PyPartMC, m) {
                              ^
src%2Fenv_state.F90:15:40: error: There is an unknown macro here somewhere. Configuration is required. If bind is a macro then please configure it. [unknownMacro]
    subroutine f_env_state_ctor(ptr_c) bind(C)
                                       ^
src%2Fenv_state.hpp:30:5: style: Struct 'EnvState' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
    EnvState(const nlohmann::json &json) :
    ^
tests%2Ftest_env_state.py:24:69: error: syntax error [syntaxError]
    @pytest.mark.parametrize("ctor_arg", (ENV_STATE_CTOR_ARG_MINIMAL,))
                                                                    ^
tests%2Ftest_run_part.py:33:5: error: syntax error: keyword 'return' is not allowed in global scope [syntaxError]
    return (
    ^
tests%2Ftest_scenario.py:307:9: error: syntax error [syntaxError]
        if len(data) == 2 and isinstance(data[1], dict) and len(data[1].keys()) == 1:
        ^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]

Copy link

CLANG WARNINGS:

/github/workspace/files/src%2Fpypartmc.cpp:7:10: error: 'pybind11/pybind11.h' file not found [clang-diagnostic-error]
#include "pybind11/pybind11.h"
         ^~~~~~~~~~~~~~~~~~~~~
/github/workspace/files/src%2Fpypartmc.cpp:32:9: warning: function-like macro 'STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define STRINGIFY(x) #x
        ^
/github/workspace/files/src%2Fpypartmc.cpp:33:9: warning: function-like macro 'MACRO_STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define MACRO_STRINGIFY(x) STRINGIFY(x)
        ^
/github/workspace/files/src%2Fpypartmc.cpp:42:1: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
PYBIND11_MODULE(_PyPartMC, m) {
^
/github/workspace/files/src%2Fpypartmc.cpp:42:26: warning: all parameters should be named in a function [readability-named-parameter]
PYBIND11_MODULE(_PyPartMC, m) {
                         ^
                          /*unused*/  /*unused*/

CPPCHECK WARNINGS:

CMakeLists.txt:9:5: error: Unmatched '('. Configuration: ''. [syntaxError]
file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
    ^
README.md:10:83: error: No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]
For an outline of the project, rationale, architecture, and features, refer to: [D'Aquino et al., 2023 (arXiv)](https://doi.org/10.48550/arXiv.2308.02052) (please cite if PyPartMC is used in your research).
                                                                                  ^
clang-tidy-report.txt:14:31: error: Unmatched '{'. Configuration: ''. [syntaxError]
PYBIND11_MODULE(_PyPartMC, m) {
                              ^
src%2Fenv_state.F90:15:40: error: There is an unknown macro here somewhere. Configuration is required. If bind is a macro then please configure it. [unknownMacro]
    subroutine f_env_state_ctor(ptr_c) bind(C)
                                       ^
src%2Fenv_state.hpp:30:5: style: Struct 'EnvState' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
    EnvState(const nlohmann::json &json) :
    ^
tests%2Ftest_env_state.py:25:69: error: syntax error [syntaxError]
    @pytest.mark.parametrize("ctor_arg", (ENV_STATE_CTOR_ARG_MINIMAL,))
                                                                    ^
tests%2Ftest_run_part.py:33:5: error: syntax error: keyword 'return' is not allowed in global scope [syntaxError]
    return (
    ^
tests%2Ftest_scenario.py:307:9: error: syntax error [syntaxError]
        if len(data) == 2 and isinstance(data[1], dict) and len(data[1].keys()) == 1:
        ^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]

Copy link

CLANG WARNINGS:

/github/workspace/files/src%2Fpypartmc.cpp:7:10: error: 'pybind11/pybind11.h' file not found [clang-diagnostic-error]
#include "pybind11/pybind11.h"
         ^~~~~~~~~~~~~~~~~~~~~
/github/workspace/files/src%2Fpypartmc.cpp:32:9: warning: function-like macro 'STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define STRINGIFY(x) #x
        ^
/github/workspace/files/src%2Fpypartmc.cpp:33:9: warning: function-like macro 'MACRO_STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define MACRO_STRINGIFY(x) STRINGIFY(x)
        ^
/github/workspace/files/src%2Fpypartmc.cpp:42:1: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
PYBIND11_MODULE(_PyPartMC, m) {
^
/github/workspace/files/src%2Fpypartmc.cpp:42:26: warning: all parameters should be named in a function [readability-named-parameter]
PYBIND11_MODULE(_PyPartMC, m) {
                         ^
                          /*unused*/  /*unused*/

CPPCHECK WARNINGS:

CMakeLists.txt:9:5: error: Unmatched '('. Configuration: ''. [syntaxError]
file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
    ^
README.md:10:83: error: No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]
For an outline of the project, rationale, architecture, and features, refer to: [D'Aquino et al., 2023 (arXiv)](https://doi.org/10.48550/arXiv.2308.02052) (please cite if PyPartMC is used in your research).
                                                                                  ^
clang-tidy-report.txt:14:31: error: Unmatched '{'. Configuration: ''. [syntaxError]
PYBIND11_MODULE(_PyPartMC, m) {
                              ^
src%2Fenv_state.F90:15:40: error: There is an unknown macro here somewhere. Configuration is required. If bind is a macro then please configure it. [unknownMacro]
    subroutine f_env_state_ctor(ptr_c) bind(C)
                                       ^
src%2Fenv_state.hpp:30:5: style: Struct 'EnvState' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
    EnvState(const nlohmann::json &json) :
    ^
tests%2Ftest_env_state.py:25:69: error: syntax error [syntaxError]
    @pytest.mark.parametrize("ctor_arg", (ENV_STATE_CTOR_ARG_MINIMAL,))
                                                                    ^
tests%2Ftest_run_part.py:33:5: error: syntax error: keyword 'return' is not allowed in global scope [syntaxError]
    return (
    ^
tests%2Ftest_scenario.py:307:9: error: syntax error [syntaxError]
        if len(data) == 2 and isinstance(data[1], dict) and len(data[1].keys()) == 1:
        ^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]

1 similar comment
Copy link

CLANG WARNINGS:

/github/workspace/files/src%2Fpypartmc.cpp:7:10: error: 'pybind11/pybind11.h' file not found [clang-diagnostic-error]
#include "pybind11/pybind11.h"
         ^~~~~~~~~~~~~~~~~~~~~
/github/workspace/files/src%2Fpypartmc.cpp:32:9: warning: function-like macro 'STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define STRINGIFY(x) #x
        ^
/github/workspace/files/src%2Fpypartmc.cpp:33:9: warning: function-like macro 'MACRO_STRINGIFY' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]
#define MACRO_STRINGIFY(x) STRINGIFY(x)
        ^
/github/workspace/files/src%2Fpypartmc.cpp:42:1: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
PYBIND11_MODULE(_PyPartMC, m) {
^
/github/workspace/files/src%2Fpypartmc.cpp:42:26: warning: all parameters should be named in a function [readability-named-parameter]
PYBIND11_MODULE(_PyPartMC, m) {
                         ^
                          /*unused*/  /*unused*/

CPPCHECK WARNINGS:

CMakeLists.txt:9:5: error: Unmatched '('. Configuration: ''. [syntaxError]
file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
    ^
README.md:10:83: error: No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError]
For an outline of the project, rationale, architecture, and features, refer to: [D'Aquino et al., 2023 (arXiv)](https://doi.org/10.48550/arXiv.2308.02052) (please cite if PyPartMC is used in your research).
                                                                                  ^
clang-tidy-report.txt:14:31: error: Unmatched '{'. Configuration: ''. [syntaxError]
PYBIND11_MODULE(_PyPartMC, m) {
                              ^
src%2Fenv_state.F90:15:40: error: There is an unknown macro here somewhere. Configuration is required. If bind is a macro then please configure it. [unknownMacro]
    subroutine f_env_state_ctor(ptr_c) bind(C)
                                       ^
src%2Fenv_state.hpp:30:5: style: Struct 'EnvState' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
    EnvState(const nlohmann::json &json) :
    ^
tests%2Ftest_env_state.py:25:69: error: syntax error [syntaxError]
    @pytest.mark.parametrize("ctor_arg", (ENV_STATE_CTOR_ARG_MINIMAL,))
                                                                    ^
tests%2Ftest_run_part.py:33:5: error: syntax error: keyword 'return' is not allowed in global scope [syntaxError]
    return (
    ^
tests%2Ftest_scenario.py:307:9: error: syntax error [syntaxError]
        if len(data) == 2 and isinstance(data[1], dict) and len(data[1].keys()) == 1:
        ^
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]

@slayoo slayoo merged commit b3995b2 into main Feb 14, 2024
36 checks passed
@slayoo slayoo deleted the slayoo-patch-5 branch May 29, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants