Skip to content

Commit

Permalink
Consolidate USR specification to setusr script (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
kent0 authored Apr 8, 2024
1 parent d40f311 commit 4a1f25a
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
test: [ CYL ]
env:
MOR_DIR: /home/runner/work/NekROM/NekROM
USR: "ana.o aux.o batch.o conv.o dump.o ei.o filter.o ip.o lapack.o pod.o qoi.o rom.o read.o time.o const.o unit.o rk.o legacy.o mpar.o tensor.o riesz.o"

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/integ_t.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
test: [ ANN ]
env:
MOR_DIR: /home/runner/work/NekROM/NekROM
USR: "ana.o aux.o batch.o conv.o dump.o ei.o filter.o ip.o lapack.o pod.o qoi.o rom.o read.o time.o const.o unit.o rk.o legacy.o mpar.o tensor.o riesz.o"

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
ips: [L2, H10]
env:
MOR_DIR: /home/runner/work/NekROM/NekROM
USR: "ana.o aux.o batch.o conv.o dump.o ei.o filter.o ip.o lapack.o pod.o qoi.o rom.o read.o time.o const.o unit.o rk.o legacy.o mpar.o tensor.o riesz.o"

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/unit_rbf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
test: [RBF_WT]
env:
MOR_DIR: /home/runner/work/NekROM/NekROM
USR: "ana.o aux.o batch.o conv.o dump.o ei.o filter.o ip.o lapack.o pod.o qoi.o rom.o read.o time.o const.o unit.o rk.o legacy.o mpar.o tensor.o riesz.o"

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/unit_rf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
test: [rf]
env:
MOR_DIR: /home/runner/work/NekROM/NekROM
USR: "ana.o aux.o batch.o conv.o dump.o ei.o filter.o ip.o lapack.o pod.o qoi.o rom.o read.o time.o const.o unit.o rk.o legacy.o mpar.o tensor.o riesz.o"

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion bin/makerom
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

$MOR_DIR/bin/linkm
USR="$USR ana.o aux.o conv.o dump.o ei.o filter.o lapack.o pod.o qoi.o rom.o read.o time.o const.o rk.o legacy.o tensor.o mpar.o riesz.o batch.o ip.o" makenek $1
source $MOR_DIR/setusr
makenek $1
2 changes: 1 addition & 1 deletion bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

export MOR_DIR=$(cd ..; pwd -P)
export PATH=$MOR_DIR/bin:$PATH
export USR="$USR ana.o aux.o conv.o dump.o ei.o filter.o lapack.o pod.o qoi.o rom.o read.o time.o const.o unit.o rk.o legacy.o mpar.o riesz.o batch.o ip.o"
source $MOR_DIR/bin/setusr
1 change: 1 addition & 0 deletions bin/setusr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export USR="$USR ana.o aux.o batch.o conv.o dump.o ei.o filter.o ip.o lapack.o pod.o qoi.o rom.o read.o time.o const.o unit.o rk.o legacy.o mpar.o riesz.o"
2 changes: 1 addition & 1 deletion code/makefile_usr.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $(OBJDIR)/riesz.o :$(MOR_DIR)/code/riesz.f MOR LMOR; $(FC) -c $(FL2) $< -o $@
$(OBJDIR)/rk.o :$(MOR_DIR)/code/rk.f MOR LMOR; $(FC) -c $(FL2) $< -o $@
$(OBJDIR)/rom.o :$(MOR_DIR)/code/rom.f MOR LMOR; $(FC) -c $(FL2) $< -o $@
$(OBJDIR)/time.o :$(MOR_DIR)/code/time.f MOR LMOR; $(FC) -c $(FL2) $< -o $@
$(OBJDIR)/tensor.o :$(MOR_DIR)/code/tensor.f MOR LMOR; $(FC) -c $(FL2) $< -o $@
$(OBJDIR)/mpar.o :$(MOR_DIR)/code/mpar.f MORDICT MOR LMOR; $(FC) -c $(FL2) $< -o $@

$(OBJDIR)/tensor.o :$(MOR_DIR)/code/tensor.f MOR LMOR; $(FC) -c $(FL2) $< -o $@
$(OBJDIR)/unit.o :$(MOR_DIR)/tests/unit.f MOR LMOR; $(FC) -c $(FL2) $< -o $@
2 changes: 2 additions & 0 deletions tests/integ.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ ls bas/bascyl0.f* > bas.list

cp ../../data/cyl_rect/cyl0.f01000 r0.f00001

source $MOR_DIR/bin/setusr
USR="$USR tensor.o"
$SOURCE_ROOT/bin/makenek test
$SOURCE_ROOT/bin/genmap << Z
test
Expand Down
2 changes: 2 additions & 0 deletions tests/test_t.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ sed -i.bu "s/ls=.*)/ls=2)/g" LMOR
sed -i.bu "s/lx1=.*)/lx1=12)/g" SIZE
sed -i.bu "s/lxd=.*)/lxd=18)/g" SIZE

source $MOR_DIR/bin/setusr
USR="$USR tensor.o"
$SOURCE_ROOT/bin/makenek test1
$SOURCE_ROOT/bin/genmap << Z
test1
Expand Down
3 changes: 3 additions & 0 deletions tests/unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ ls bas/bascyl0.f* > bas.list

cp ../../data/cyl_rect/cyl0.f01000 r0.f00001

source $MOR_DIR/bin/setusr
USR="$USR tensor.o"

fold_start makenek Makenek
$SOURCE_ROOT/bin/makenek test
fold_end makenek
Expand Down
2 changes: 2 additions & 0 deletions tests/unit_rbf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ source travis_fn
mkdir t
cd t
$MOR_DIR/bin/linkm
source $MOR_DIR/bin/setusr
USR="$USR tensor.o"

sed 's/(ltr=.*)/(ltr=80)/g' LMOR > LMOR.tmp
mv LMOR.tmp LMOR
Expand Down
3 changes: 3 additions & 0 deletions tests/unit_rf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ source travis_fn
mkdir t
cd t
$MOR_DIR/bin/linkm
source $MOR_DIR/bin/setusr
USR="$USR tensor.o"

sed 's/(ltr=.*)/(ltr=80)/g' LMOR > LMOR.tmp
mv LMOR.tmp LMOR
Expand All @@ -24,6 +26,7 @@ sed -i.bu "s/ls=.*)/ls=2)/g" LMOR
sed -i.bu "s/lx2=.*)/lx2=lx1)/g" SIZE
sed -i.bu "s/leleg=.*)/leleg=48)/g" SIZE
sed -i.bu "s/ldimt=.*)/ldimt=4)/g" SIZE

fold_start makenek Makenek
$SOURCE_ROOT/bin/makenek rf_unit
fold_end makenek
Expand Down

0 comments on commit 4a1f25a

Please sign in to comment.