@@ -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
132132if __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