Skip to content

Commit 8672fe1

Browse files
authored
Merge pull request #882 from jalvesz/fypp_deployment
fix fypp_deployment build and set maxrank default to 4 as in cmake
2 parents 8050d1f + 55dc461 commit 8672fe1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

config/fypp_deployment.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ def fpm_build(args,unknown):
122122
flags= flags + unknown[idx+1]
123123
#==========================================
124124
# build with fpm
125-
subprocess.run(["fpm build"]+
126-
[" --compiler "]+[FPM_FC]+
127-
[" --c-compiler "]+[FPM_CC]+
128-
[" --cxx-compiler "]+[FPM_CXX]+
129-
[" --flag "]+[flags], shell=True, check=True)
125+
subprocess.run("fpm build"+
126+
" --compiler "+FPM_FC+
127+
" --c-compiler "+FPM_CC+
128+
" --cxx-compiler "+FPM_CXX+
129+
" --flag \"{}\"".format(flags), shell=True, check=True)
130130
return
131131

132132
if __name__ == "__main__":
@@ -137,7 +137,7 @@ def fpm_build(args,unknown):
137137
parser.add_argument("--vpatch", type=int, default=0, help="Project Version Patch")
138138

139139
parser.add_argument("--njob", type=int, default=4, help="Number of parallel jobs for preprocessing")
140-
parser.add_argument("--maxrank",type=int, default=7, help="Set the maximum allowed rank for arrays")
140+
parser.add_argument("--maxrank",type=int, default=4, help="Set the maximum allowed rank for arrays")
141141
parser.add_argument("--with_qp",action='store_true', help="Include WITH_QP in the command")
142142
parser.add_argument("--with_xdp",action='store_true', help="Include WITH_XDP in the command")
143143
parser.add_argument("--lnumbering",action='store_true', help="Add line numbering in preprocessed files")

0 commit comments

Comments
 (0)