Skip to content

Commit a0198b4

Browse files
committed
A few corrections.
1 parent 13fe261 commit a0198b4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ci_05_schedule_number_theory_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
# We need specific version 3.3.9 because of a bug in 3.4.0 for algebraic data types.
3232
wget -q https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz
3333
tar -xzf eigen-3.3.9.tar.gz
34+
mkdir -p /home/runner/work/opt
3435
mv eigen-3.3.9 /home/runner/work/opt/eigen
3536
pwd
3637
echo "After eigen-3.3.9 set up"

src_basic/Namelist.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,13 @@ struct FullNamelist {
687687
SingleBlock& get_block_mut(std::string const& key) {
688688
return get_key_value_mut(ListBlock, "ListBlock", key);
689689
}
690+
bool has_block(std::string const& key) const {
691+
if (ListBlock.count(key) == 0) {
692+
return false;
693+
} else {
694+
return true;
695+
}
696+
}
690697
FullNamelist(std::map<std::string, SingleBlock> const& _ListBlock) {
691698
ListBlock = _ListBlock;
692699
FileName = "undefined";

0 commit comments

Comments
 (0)