Skip to content

Commit

Permalink
dt
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuoWang2000 committed Feb 12, 2024
1 parent 9074e47 commit 650ad1e
Show file tree
Hide file tree
Showing 733 changed files with 213,486 additions and 178,255 deletions.
132 changes: 66 additions & 66 deletions .github/workflows/regression_test.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
# This workflow performs automated tests on the official code branch.
# Test 1: compiling the source code and building the executable
# Test 2: performing the regression tests.

name: Python application test

on:
push:
branches: [ "development/digitalTwin" ]
pull_request:
branches: [ "development/digitalTwin" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build
run: |
# source venv/bin/activate
echo "Compiling SCIANTIX"
make
ls
cd bin
echo "in bin"
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: compiled-bin
path: ./bin

test:
needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: compiled-bin
path: ./bin

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install numpy matplotlib scipy scikit-learn
- name: Run tests
run: |
source venv/bin/activate
echo "In Regression"
cd regression
chmod +x ./../bin/sciantix.x # add the execute permission
python3 ./regression.py
# This workflow performs automated tests on the official code branch.
# Test 1: compiling the source code and building the executable
# Test 2: performing the regression tests.

name: Python application test

on:
push:
branches: [ "development/digitalTwin" ]
pull_request:
branches: [ "development/digitalTwin" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build
run: |
# source venv/bin/activate
echo "Compiling SCIANTIX"
make
ls
cd bin
echo "in bin"
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: compiled-bin
path: ./bin

test:
needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: compiled-bin
path: ./bin

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install numpy matplotlib scipy scikit-learn
- name: Run tests
run: |
source venv/bin/activate
echo "In Regression"
cd regression
chmod +x ./../bin/sciantix.x # add the execute permission
python3 ./regression.py
98 changes: 49 additions & 49 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
*.x

# Backup files
*.bak

# Mac OS files
*.DS_Store

# Folders
bin/
obj/
build/
out/
documentation/
.vscode/
.vs/
old_files/
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
*.x

# Backup files
*.bak

# Mac OS files
*.DS_Store

# Folders
bin/
obj/
build/
out/
documentation/
.vscode/
.vs/
old_files/
__pycache__/
102 changes: 51 additions & 51 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
#//////////////////////////////////////////////////////////////////////////////////////
#// _______. ______ __ ___ .__ __. .___________. __ ___ ___ //
#// / | / || | / \ | \ | | | || | \ \ / / //
#// | (----`| ,----'| | / ^ \ | \| | `---| |----`| | \ V / //
#// \ \ | | | | / /_\ \ | . ` | | | | | > < //
#// .----) | | `----.| | / _____ \ | |\ | | | | | / . \ //
#// |_______/ \______||__| /__/ \__\ |__| \__| |__| |__| /__/ \__\ //
#// //
#// Originally developed by D. Pizzocri & T. Barani //
#// //
#// Version: 2.0 //
#// Year: 2022 //
#// Authors: G. Zullo ([email protected]) //
#// //
#//////////////////////////////////////////////////////////////////////////////////////

# This CMakeLists.txt file is useful when compiling SCIANTIX with the cmake tool
#
# output:
# > build directory with executable in build/Debug/sciantix.exe
#
# When using IDE, a CMakeSettings.json could be automatically produced to compile sciantix in a locall out/build/ folder
# by setting this file as startup element.
# More information here: (https://learn.microsoft.com/it-it/cpp/build/configure-cmake-debugging-sessions?view=msvc-170)

cmake_minimum_required(VERSION 3.0.0)

# Name of the project created / existent in visual studio
project(sciantix)

# Enable C++ compiler
enable_language (CXX)

# Specify SCIANTIX directories
set(include "include/*.h")
set(src "src/*.C")

include(CTest)
enable_testing()

include_directories(
${CMAKE_SOURCE_DIR}/include/
)

file(GLOB SOURCES ${include} ${src})
add_executable(sciantix ${SOURCES})

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})

include(CPack)
#//////////////////////////////////////////////////////////////////////////////////////
#// _______. ______ __ ___ .__ __. .___________. __ ___ ___ //
#// / | / || | / \ | \ | | | || | \ \ / / //
#// | (----`| ,----'| | / ^ \ | \| | `---| |----`| | \ V / //
#// \ \ | | | | / /_\ \ | . ` | | | | | > < //
#// .----) | | `----.| | / _____ \ | |\ | | | | | / . \ //
#// |_______/ \______||__| /__/ \__\ |__| \__| |__| |__| /__/ \__\ //
#// //
#// Originally developed by D. Pizzocri & T. Barani //
#// //
#// Version: 2.0 //
#// Year: 2022 //
#// Authors: G. Zullo ([email protected]) //
#// //
#//////////////////////////////////////////////////////////////////////////////////////

# This CMakeLists.txt file is useful when compiling SCIANTIX with the cmake tool
#
# output:
# > build directory with executable in build/Debug/sciantix.exe
#
# When using IDE, a CMakeSettings.json could be automatically produced to compile sciantix in a locall out/build/ folder
# by setting this file as startup element.
# More information here: (https://learn.microsoft.com/it-it/cpp/build/configure-cmake-debugging-sessions?view=msvc-170)

cmake_minimum_required(VERSION 3.0.0)

# Name of the project created / existent in visual studio
project(sciantix)

# Enable C++ compiler
enable_language (CXX)

# Specify SCIANTIX directories
set(include "include/*.h")
set(src "src/*.C")

include(CTest)
enable_testing()

include_directories(
${CMAKE_SOURCE_DIR}/include/
)

file(GLOB SOURCES ${include} ${src})
add_executable(sciantix ${SOURCES})

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})

include(CPack)
Loading

0 comments on commit 650ad1e

Please sign in to comment.