Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

The introspective may achieve more: Enhancing existing Geoscientific models with native-language emulated structural reflection

Journal Article · · Computers and Geosciences
 [1];  [2]
  1. The Pennsylvania State Univ., University Park, PA (United States); Office of Science BER
  2. The Pennsylvania State Univ., University Park, PA (United States)

Geoscientific models manage myriad and increasingly complex data structures as trans-disciplinary models are integrated. They often incur significant redundancy with cross-cutting tasks. Reflection, the ability of a program to inspect and modify its structure and behavior at runtime, is known as a powerful tool to improve code reusability, abstraction, and separation of concerns. Reflection is rarely adopted in high-performance Geoscientific models, especially with Fortran, where it was previously deemed implausible. Practical constraints of language and legacy often limit us to feather-weight, native-language solutions. We demonstrate the usefulness of a structural-reflection-emulating, dynamically-linked metaObjects, gd. We show real-world examples including data structure self-assembly, effortless save/restart and upgrade to parallel I/O, recursive actions and batch operations. We share gd and a derived module that reproduces MATLAB-like structure in Fortran and C++. We suggest that both a gd representation and a Fortran-native representation are maintained to access the data, each for separate purposes. In conclusion, embracing emulated reflection allows generically-written codes that are highly re-usable across projects.

Research Organization:
Pennsylvania State Univ., University Park, PA (United States)
Sponsoring Organization:
USDOE Office of Science (SC), Biological and Environmental Research (BER) (SC-23)
Grant/Contract Number:
SC0010620
OSTI ID:
1397240
Alternate ID(s):
OSTI ID: 1549240
Journal Information:
Computers and Geosciences, Journal Name: Computers and Geosciences Vol. 110; ISSN 0098-3004
Publisher:
ElsevierCopyright Statement
Country of Publication:
United States
Language:
English

References (26)

Quantifying storage changes in regional Great Lakes watersheds using a coupled subsurface-land surface process model and GRACE, MODIS products journal September 2014
Accurate and efficient prediction of fine-resolution hydrologic and carbon dynamic simulations from coarse-resolution models: EFFICIENT PREDICTION OF HYDROLOGIC AND CARBON DYNAMICS journal February 2016
The fan of influence of streams and channel feedbacks to simulated land surface water and carbon dynamics: CHANNEL FEEDBACKS TO SIMULATED LAND SURFACE DYNAMICS journal February 2016
Improving Budyko curve-based estimates of long-term water partitioning using hydrologic signatures from GRACE: PREDICTING DEPARTURE FROM BUDYKO USING GRACE journal July 2016
Evaluating controls on coupled hydrologic and vegetation dynamics in a humid continental climate watershed using a subsurface-land surface processes model: EVALUATING CONTROLS ON HYDROLOGIC AND VEGETATION DYNAMICS journal May 2013
Model and data integration and re-use in environmental decision support systems journal December 1998
Making frameworks more useable: using model introspection and metadata to develop model processing tools journal March 2004
A process-based, distributed hydrologic model based on a large-scale method for surface–subsurface coupling journal December 2010
Temporal evolution of soil moisture statistical fractal and controls by soil texture and regional groundwater flow journal December 2015
Linking models for assessing agricultural land use change journal May 2011
Simplifying environmental model reuse journal February 2010
A new approach to water quality modelling and environmental decision support systems journal July 2009
A software engineering perspective on environmental modeling framework design: The Object Modeling System journal January 2013
Integrated environmental modeling: A vision and roadmap for the future journal January 2013
Selecting among five common modelling approaches for integrated environmental assessment and management journal September 2013
Quantifying the effects of data integration algorithms on the outcomes of a subsurface–land surface processes model journal September 2014
APSIM – Evolution towards a new generation of agricultural systems simulation journal December 2014
Adaptive mesh, finite volume modeling of marine ice sheets journal January 2013
Modeling watershed-scale solute transport using an integrated, process-based hydrologic model with applications to bacterial fate and transport journal October 2015
The community Noah land surface model with multiparameterization options (Noah-MP): 1. Model description and evaluation with local-scale measurements journal January 2011
Modeling the Evolution of Incised Streams: I. Model Formulation and Validation of Flow and Streambed Evolution Components journal June 2008
Modeling the Evolution of Incised Streams. II: Streambank Erosion journal July 2008
High-Resolution Simulation of Pore-Scale Reactive Transport Processes Associated with Carbon Sequestration journal November 2014
Aspect-oriented programming: Introduction journal October 2001
The integrated Earth system model version 1: formulation and functionality journal January 2015
Characterizing coarse-resolution watershed soil moisture heterogeneity using fine-scale simulations journal January 2014

Cited By (2)