-
Notifications
You must be signed in to change notification settings - Fork 1
Description
CRITICAL BUG: pcolormesh Functionality Completely Broken
The pcolormesh_demo example fails with systematic dimension validation errors, indicating the pcolormesh functionality is completely broken.
Reproduction Steps
Execute pcolormesh Demo
fpm run --example pcolormesh_demoCurrent Behavior (Broken)
[ERROR] pcolormesh: z dimensions must match x and y
[ERROR] pcolormesh: z dimensions must match x and y
[ERROR] pcolormesh: z dimensions must match x and y
Multiple dimension validation errors occur, preventing any pcolormesh plots from being generated.
Expected Behavior
The pcolormesh demo should successfully create pseudocolor mesh plots showing different colormap and data visualization examples.
Impact Assessment
User-Facing Issues
- Complete Feature Loss: pcolormesh plots cannot be created
- Example Failure: Official demo example completely non-functional
- Data Visualization Gap: Important scientific plotting feature unavailable
Functional Issues
- Dimension Validation: Fundamental dimension checking is failing
- Array Handling: Issues with coordinate array processing
- Example Code: Demo code itself may have bugs
Analysis
Dimension Validation Error
The error message z dimensions must match x and y suggests:
- Array Size Mismatch: The z-data array dimensions don't align with x/y coordinate arrays
- Indexing Bug: Incorrect array indexing or dimension calculation
- API Mismatch: pcolormesh API expecting different array formats than provided
- Validation Bug: Overly strict or incorrect dimension validation logic
Possible Causes
- Demo Code Bug: The example code itself has incorrect array dimensions
- API Changes: pcolormesh API changed but demo wasn't updated
- Implementation Bug: Core pcolormesh implementation has dimension handling bugs
- Validation Logic Error: Dimension checking logic is incorrect
Historical Context
Related Issues
Issue #430 was marked CLOSED for pcolormesh segmentation faults, but this appears to be a different fundamental issue with dimension validation.
Regression Analysis
This could be:
- New regression from recent changes
- Persistent issue not covered by previous fixes
- Demo-specific problem with example code
Debug Information Needed
Array Dimension Analysis
To debug this issue, need to verify:
- Input Array Dimensions: What dimensions are x, y, z arrays in the demo?
- Expected Dimensions: What dimensions does pcolormesh expect?
- Validation Logic: How does the dimension validation work?
Code Review Required
- Demo Code: Verify pcolormesh_demo.f90 has correct array setup
- API Implementation: Check pcolormesh dimension validation logic
- Error Messages: Ensure error messages provide sufficient detail
Priority: CRITICAL
This represents a complete failure of an important scientific plotting feature.
Impact on Users:
- Scientists: Cannot create heatmaps or 2D data visualizations
- Engineers: Missing important data analysis capabilities
- Students: Example code doesn't work for learning
IMMEDIATE ACTION REQUIRED: pcolormesh is a core feature for scientific computing applications.