@@ -1020,23 +1020,28 @@ def test_porousJump_entities_is_interface(mock_validation_context):
10201020
10211021def test_porousJump_cross_custom_volume_interface (mock_validation_context ):
10221022 """Test that PorousJump allows non-interface surfaces when they belong to different CustomVolumes."""
1023- # Create surfaces that are NOT interfaces
1024- surface_cv1 = Surface (name = "Surface-CV1" , private_attribute_is_interface = False )
1025- surface_cv2 = Surface (name = "Surface-CV2" , private_attribute_is_interface = False )
1026- surface_cv1_another = Surface (name = "Surface-CV1-Another" , private_attribute_is_interface = False )
1023+ # Create surfaces that are NOT interfaces, with explicit IDs for tracking
1024+ surface_cv1 = Surface (
1025+ name = "Surface-CV1" , private_attribute_is_interface = False , private_attribute_id = "cv1-surf-1"
1026+ )
1027+ surface_cv2 = Surface (
1028+ name = "Surface-CV2" , private_attribute_is_interface = False , private_attribute_id = "cv2-surf-1"
1029+ )
1030+ surface_cv1_another = Surface (
1031+ name = "Surface-CV1-Another" ,
1032+ private_attribute_is_interface = False ,
1033+ private_attribute_id = "cv1-surf-2" ,
1034+ )
10271035
10281036 # Set up to_be_generated_custom_volumes with two CustomVolumes having different boundaries
10291037 mock_validation_context .info .to_be_generated_custom_volumes = {
10301038 "CustomVolume1" : {
10311039 "enforce_tetrahedra" : False ,
1032- "boundary_surface_ids" : {
1033- surface_cv1 .private_attribute_id ,
1034- surface_cv1_another .private_attribute_id ,
1035- },
1040+ "boundary_surface_ids" : {"cv1-surf-1" , "cv1-surf-2" },
10361041 },
10371042 "CustomVolume2" : {
10381043 "enforce_tetrahedra" : False ,
1039- "boundary_surface_ids" : {surface_cv2 . private_attribute_id },
1044+ "boundary_surface_ids" : {"cv2-surf-1" },
10401045 },
10411046 }
10421047
0 commit comments