devitocodes / opesci-fd

A framework for automatically generating finite difference models from a high-level description of the model equations.

Home Page:http://opesci.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generated code should not use global variables

ggorman opened this issue · comments

Wherever possible, variables should be declared nearby where they are first used. Exceptions include data that is shared between threads, in which case they are declared outside the parallel section.

Variables of global scope should never be declared!