Cytnx Cluster

  1. Activate the devenv:

    ​​​​ source /opt/solvcon/scripts/activate-devenv
    
  2. Create a devenv flavor: (By default, the flavors will be placed in ~/.devenvflavors)

    ​​​​devenv add modmesh-dev
    ​​​​devenv use modmesh-dev
    
  3. Set up the modmesh development environment:

    ​​​/opt/solvcon/scripts/setup-modmesh-devenv.sh
    
  4. Get modmesh source code:

    ​​​​git clone https://github.com/solvcon/modmesh.git
    ​​​​cd modmesh
    
  5. Build modmesh and verify:

    ​​​ # Run google test
    ​​​ make gtest VERBOSE=1 USE_CLANG_TIDY=OFF BUILD_QT=OFF
    
    ​​​ # Run pytest
    ​​​ make pytest PYTEST_OPTS="-v -s --ignore=tests/test_view.py"
    
  6. Test modmesh as a library:

    Build the pybind library

    ​​​​rm -f build/*/Makefile
    ​​​​
    ​​​​make cmake \
    ​​​​  VERBOSE=1 USE_CLANG_TIDY=OFF \
    ​​​​  BUILD_QT=OFF \
    ​​​​  CMAKE_BUILD_TYPE=Debug \
    ​​​​  CMAKE_ARGS="-DPYTHON_EXECUTABLE=$(which python3)"
    ​​​​  
    ​​​​make buildext VERBOSE=1 BUILD_QT=OFF
    

    Use the library:

    ​​​​cd
    ​​​​mkdir tmp
    ​​​​cp modmesh/_modmesh.cpython-311-x86_64-linux-gnu.so  tmp
    ​​​​
    ​​​​cd tmp
    ​​​​python3
    ​​​​
    ​​​​>>> import _modmesh as mm
    ​​​​>>> arr = mm.SimpleArray((2,3,4), dtype="int32")
    

    Check more example at modmesh/tests.