...
首页> 外文期刊>Computers & geosciences >The introspective may achieve more: Enhancing existing Geoscientific models with native-language emulated structural reflection
【24h】

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

机译:内省可能会取得更多成就:使用本地语言模拟的结构反射来增强现有的Geoscientific模型

获取原文
获取原文并翻译 | 示例
           

摘要

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 meta Objects, gd. We show real-world examples including data structure self-assembly, effortless input/output (IO)) 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. Embracing emulated reflection allows generically-written codes that are highly re-usable across projects.
机译:随着跨学科模型的集成,地球科学模型管理着无数且日益复杂的数据结构。它们通常会在跨领域任务上带来大量冗余。反射是程序在运行时检查和修改其结构与行为的能力,被称为一种功能强大的工具,可以提高代码的可重用性,抽象性和关注点分离。高性能Geoscientific模型中很少采用反射,尤其是对于以前认为不可信的Fortran。语言和传统的实际限制通常使我们只能使用轻量级的母语解决方案。我们演示了模拟结构反射,动态链接的元对象gd的有用性。我们展示了真实的示例,包括数据结构自组装,毫不费力的输入/输出(IO)以及如何升级到并行I / O,递归操作和批处理操作。我们共享gd和一个派生模块,该模块在Fortran和C ++中再现类似于MATLAB的结构。我们建议同时保留gd表示形式和Fortran本地表示形式来访问数据,每个表示形式均用于单独的目的。拥抱模拟反射允许通用编写的代码在项目之间高度可重用。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号