This commit is contained in:
张壹 2021-08-02 09:42:03 +08:00
parent 46b5976290
commit 7b01dc91ef
4 changed files with 6577 additions and 6567 deletions

View File

@ -1,9 +1,16 @@
#!/bin/bash
if [[ ${1} == "configure" && ! -d "build/" ]]; then
mkdir build && cd build && rm -rf * && cmake ..
elif [[ ${1} == "configure" ]]; then
cd build && rm -rf * && cmake ..
elif [[ ${1} == "build" ]]; then
cmd=${1}
package=yzToys
address=/opt
if [[ ${cmd} == "configure" && ! -d "build/" ]]; then
mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=${address}/stow/${package} -DCMAKE_BUILD_TYPE=Release
elif [[ ${cmd} == "configure" ]]; then
cd build && rm -rf * && cmake .. -DCMAKE_INSTALL_PREFIX=${address}/stow/${package} -DCMAKE_BUILD_TYPE=Release
elif [[ ${cmd} == "build" ]]; then
cd build && make
elif [[ ${cmd} == "install" ]]; then
cd build && sudo make install
sudo stow --dir=${address}/stow --target=${address} ${package}
fi

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/zsh
xyz2nc -t prism_mag_pot.txt -o prism_V -r -30/30/-30/30 -i 0.75/0.75 -c 0,1,3 -l x,y,V
xyz2nc -t prism_mag_grad.txt -o prism_B -r -30/30/-30/30 -i 0.75/0.75 -c 0,1,3,4,5 -l x,y,Bx,By,Bz

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
aux_source_directory(. SRC_DIR)
include_directories(/usr/local/include)
include_directories(/opt/include)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
@ -17,4 +17,7 @@ if (OpenMP_CXX_FOUND)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
target_link_libraries(magtet PUBLIC OpenMP::OpenMP_CXX)
endif()
endif()
# /opt/stow/yzToys
install(TARGETS magtet RUNTIME DESTINATION bin)