BER launches Environmental System Science Program. Visit our new website under construction!

U.S. Department of Energy Office of Biological and Environmental Research

BER Research Highlights


The Introspective May Achieve More: Enhancing Existing Geoscientific Models with Native-Language Structural Reflection
Published: September 28, 2017
Posted: January 23, 2018

New work proposes novel code infrastructural updates that will accelerate Earth System Modeling.

The Science
A progressive software engineering method known as reflection, which automatically analyzes code structure, is applied to Earth system modeling codes.

The Impact
The application of reflection to Earth system codes has the potential to greatly enhance productivity and code-reusability.

Summary
Geoscientific models such as the Community Land Model 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. DOE-funded scientists at Penn State University demonstrate the usefulness of a structural-reflection-emulating, dynamically-linked metaObjects (objects that manipulate, create, describe, or implement other objects), gd. They show real-world examples including data structure self-assembly, effortless save/restart and upgrade to parallel I/O, recursive actions and batch operations. They share gd and a derived module that reproduces MATLAB-like structure in Fortran and C++. They suggest that both a gd representation and a Fortran-native representation are maintained to access the data, each for separate purposes. Embracing emulated reflection allows generically-written codes that are highly re-usable across projects; this framework will greatly accelerate Earth system model development across the board.

Contacts (BER PMs)
Dorothy Koch
Earth System Modeling
Dorothy.Koch@science.doe.gov

PI Contact
Chaopeng Shen
Penn State University
Shen.Chaopeng@gmail.com

Funding
The U.S. Department of Energy Office of Science, Biological and Environmental Research, Earth System Modeling Program.

Publication
Ji, X. and C. Shen. “The introspective may achieve more: enhancing existing Geoscientific models with native-language structural reflection.” Computers and Geosciences 110, 32-40 (2017). [DOI: 10.1016/j.cageo.2017.09.014]

Related Links
Reference link

Topic Areas:

  • Research Area: Earth and Environmental Systems Modeling

Division: SC-33.1 Earth and Environmental Sciences Division, BER

 

BER supports basic research and scientific user facilities to advance DOE missions in energy and environment. More about BER

Recent Highlights

Mar 23, 2021
Molecular Connections from Plants to Fungi to Ants
Lipids transfer energy and serve as an inter-kingdom communication tool in leaf-cutter ants&rsqu [more...]

Mar 19, 2021
Microbes Use Ancient Metabolism to Cycle Phosphorus
Microbial cycling of phosphorus through reduction-oxidation reactions is older and more widespre [more...]

Feb 22, 2021
Warming Soil Means Stronger Microbe Networks
Soil warming leads to more complex, larger, and more connected networks of microbes in those soi [more...]

Jan 27, 2021
Labeling the Thale Cress Metabolites
New data pipeline identifies metabolites following heavy isotope labeling.

Analysis [more...]

Aug 31, 2020
Novel Bacterial Clade Reveals Origin of Form I Rubisco
Objectives

  • All plant biomass is sourced from the carbon-fixing enzyme Rub [more...]

List all highlights (possible long download time)