Ignore:
Timestamp:
12/22/17 01:35:23 (7 years ago)
Author:
dubos
Message:

devel/unstructured : more loop unrolling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/Python/src/macros.jin

    r615 r650  
    1010  
    1111{% macro define(key,val) %}  
    12 {{ flat }}undef {{ key }}  
     12{{ flat }}undef {{ key }} 
    1313{{ flat }}define {{ key }} {{ val }}  
    1414{%- endmacro %} 
     
    2323{{ flat }}define {{ key }} {{ key }}_UNDEFINED_HERE 
    2424{%- endmacro %} 
     25 
     26{% macro cdef(code, key,val) %}  
     27{{ define(key,val) if key in code }} 
     28{%- endmacro %} 
     29 
     30{% macro cundef(code, keys) %}  
     31{% for key in keys %} 
     32{{ undef(key) if key in code }} 
     33{%- endfor %} 
     34{%- endmacro %} 
     35 
    2536 
    2637{% macro dummy() -%} 
Note: See TracChangeset for help on using the changeset viewer.