Skip to content

Commit

Permalink
Merge branch 'develop' into feature/pack_vector_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
odlomax authored Aug 21, 2024
2 parents 2d3dd0d + f7213e9 commit 1d4bafc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ jobs:

- name: macos
# Xcode compiler requires empty environment variables, so we pass null (~) here
os: macos-12
os: macos-13
compiler: clang-14
compiler_cc: ~
compiler_cxx: ~
compiler_fc: gfortran-11
compiler_fc: gfortran-13
caching: true
coverage: false
cmake_options: -DMPI_SLOTS=4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ class ConservativeSphericalPolygonInterpolation : public Method {
SRCTGT_INTERSECTPLG_DIFF, // index, 1/(unit_sphere.area) ( \sum_{scell} scell.area - \sum{tcell} tcell.area )
REMAP_CONS, // index, error in mass conservation
REMAP_L2, // index, error accuracy for given analytical function
REMAP_LINF // index, like REMAP_L2 but in L_infinity norm
REMAP_LINF, // index, like REMAP_L2 but in L_infinity norm
ERRORS_ENUM_SIZE
};
std::array<double, 11> errors;
std::array<double, ERRORS_ENUM_SIZE> errors;

double tgt_area_sum;
double src_area_sum;
Expand Down
14 changes: 5 additions & 9 deletions tools/c2f.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
# granted to it by virtue of its status as an intergovernmental organisation nor
# does it submit to any jurisdiction.

#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
from argparse import ArgumentParser
import re
import time
Expand Down Expand Up @@ -50,7 +49,7 @@
'logical(c_bool)':'c_bool'
}

function_signature = re.compile('''^
function_signature = re.compile(r'''^
( #1 Type
(const\s+)? #2 Leading const
([^\*\&\s\[]+) #3
Expand All @@ -72,7 +71,7 @@ def __init__(self,msg):

class Argument:

arg_signature = re.compile('''^
arg_signature = re.compile(r'''^
( #1 Type
(const\s+)? #2 Leading const
([^\*\&\s\[]+) #3
Expand Down Expand Up @@ -180,9 +179,6 @@ def __init__(self,line):
except KeyError:
raise ParsingFailed("Could not parse return type for statement "+line)

def __nonzero__(self): # python 2
return self.type != "void"

def __bool__(self): # python 3
return self.type != "void"

Expand Down Expand Up @@ -304,9 +300,9 @@ def statements(self):

with open(input,'r') as file:
content = file.read()
externC = re.compile('^extern\s+"C"(\s*{)?')
externC = re.compile(r'^extern\s+"C"(\s*{)?')

regex_externC = [re.compile('^extern\s+"C"(\s*{)?'),re.compile('^{')]
regex_externC = [re.compile(r'^extern\s+"C"(\s*{)?'),re.compile('^{')]
in_externC = [False,False]

for line in content.splitlines():
Expand Down

0 comments on commit 1d4bafc

Please sign in to comment.