Skip to content

Commit 4ced874

Browse files
authored
PIDeepONet-LBM (#947)
* PIDeepONet-LBM * PIDeepONet-LBM-datasetMountBOS * PIDeepONet-LBM-datasetMountBOS-CUDASet * PIDeepONet-LBM-datasetMountBOS-CUDASet
1 parent dcfeba2 commit 4ced874

File tree

23 files changed

+4000
-0
lines changed

23 files changed

+4000
-0
lines changed

.clang_format.hook

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -e
3+
4+
readonly VERSION="3.8"
5+
6+
version=$(clang-format -version)
7+
8+
if ! [[ $version == *"$VERSION"* ]]; then
9+
echo "clang-format version check failed."
10+
echo "a version contains '$VERSION' is needed, but get '$version'"
11+
echo "you can install the right version, and make an soft-link to '\$PATH' env"
12+
exit -1
13+
fi
14+
15+
clang-format $@

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ repos:
5151
entry: bash .clang_format.hook -i
5252
language: system
5353
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|cuh|proto)$
54+
55+
exclude: |
56+
^jointContribution/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
代码数据通过以下方式获取:
2+
wget https://paddle-org.bj.bcebos.com/paddlescience/datasets/PIDeepONet-LBM/PIDeepONet-LBM-dataset.tar.gz
3+
4+
数据下载后将数据放在对应的文件夹下,运行各个任务的main.py文件即可

0 commit comments

Comments
 (0)