Skip to content

Commit ce9aede

Browse files
committed
EAMxx: add python hooks also for the process internal fields
1 parent 6ea90f7 commit ce9aede

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/eamxx/src/share/atm_process/atmosphere_process.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,13 @@ void AtmosphereProcess::add_me_as_customer (const Field& f) {
709709

710710
void AtmosphereProcess::add_internal_field (const Field& f) {
711711
m_internal_fields.push_back(f);
712+
#ifdef EAMXX_HAS_PYTHON
713+
if (m_py_module.has_value()) {
714+
const auto& grid_name = f.get_header().get_identifier().get_grid_name();
715+
m_py_fields_dev[grid_name][f.name()] = create_py_field<Device>(f);
716+
m_py_fields_host[grid_name][f.name()] = create_py_field<Host>(f);
717+
}
718+
#endif
712719
}
713720

714721
const Field& AtmosphereProcess::

0 commit comments

Comments
 (0)