Skip to content

Commit 44af3df

Browse files
committed
test(fixtures): register density field for diffusion model
Add primary real field name 'density' to DiffusionModel fixture to enable FieldModifier integration tests. - Ensures tests can access model fields by name
1 parent fabb726 commit 44af3df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/fixtures/diffusion_model.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ class DiffusionModel : public Model {
7171
m_psi_F.resize(fft.size_outbox());
7272
m_opL.resize(fft.size_outbox());
7373

74+
// Register primary real field for test integrations
75+
add_real_field("density", m_psi);
76+
7477
// Get local domain bounds
7578
// LLM: Each MPI rank has subset of domain (inbox = real space, outbox = k-space)
7679
Vec3<int> i_low = get_inbox(fft).low;

0 commit comments

Comments
 (0)