Skip to content

Commit

Permalink
Merge pull request #4961 from hzhou/2012_embiggening
Browse files Browse the repository at this point in the history
mpi4: embiggening

Approved-by: Ken Raffenetti <raffenet@mcs.anl.gov>
  • Loading branch information
hzhou authored Feb 20, 2021
2 parents 9983a3b + deb6de4 commit c23e573
Show file tree
Hide file tree
Showing 35 changed files with 988 additions and 447 deletions.
9 changes: 7 additions & 2 deletions maint/gen_binding_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,15 @@ def main():
else:
G.out = []
G.err_codes = {}
mapping = G.MAPS['SMALL_C_KIND_MAP']

# dumps the code to G.out array
dump_mpi_c(func, mapping)
# Note: set func['_has_poly'] = False to skip embiggenning
func['_has_poly'] = function_has_POLY_parameters(func)
if func['_has_poly']:
dump_mpi_c(func, "SMALL")
dump_mpi_c(func, "BIG")
else:
dump_mpi_c(func, "SMALL")

file_path = get_func_file_path(func, binding_dir)
dump_c_file(file_path, G.out)
Expand Down
Loading

0 comments on commit c23e573

Please sign in to comment.