-
Notifications
You must be signed in to change notification settings - Fork 117
update cursor rules. #955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update cursor rules. #955
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates and significantly expands the cursor/AI agent rules documentation for the MFC project. The update transforms a concise reference into a comprehensive development guide that documents both AI interaction patterns and the project's coding practices.
- Restructures and reformats the existing sections for better readability
- Adds extensive new sections covering file structure, documentation style, error handling, and memory management
- Expands GPU programming guidelines with specific Fypp macro examples and best practices
--- | ||
|
||
# 3 FYPP Macros for GPU acceleration Pogramming Guidelines (for kernels) | ||
# 3 FYPP Macros for GPU acceleration Pogramming Guidelines (for GPU kernels) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a spelling error in the heading: 'Pogramming' should be 'Programming'.
# 3 FYPP Macros for GPU acceleration Pogramming Guidelines (for GPU kernels) | |
# 3 FYPP Macros for GPU acceleration Programming Guidelines (for GPU kernels) |
Copilot uses AI. Check for mistakes.
- Assume free-form Fortran 2008+, `implicit none`, explicit `intent`, and modern intrinsics. | ||
- Prefer `module … contains … subroutine foo()`; avoid `COMMON` blocks and file-level `include` files. | ||
- **Read the full codebase and docs *before* changing code.** | ||
- Docs: <https://mflowcode.github.io/documentation/md_readme.html> and the respository root `README.md`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a spelling error: 'respository' should be 'repository'.
- Docs: <https://mflowcode.github.io/documentation/md_readme.html> and the respository root `README.md`. | |
- Docs: <https://mflowcode.github.io/documentation/md_readme.html> and the repository root `README.md`. |
Copilot uses AI. Check for mistakes.
This reverts commit e4d00c0.
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Adds a more full description of the cursor/AI rules (also helps just document our code practices). Related to #867
PR Type
Documentation
Description
Expanded Cursor AI rules with comprehensive Fortran/Fypp guidelines
Added detailed sections on file structure, GPU acceleration patterns
Enhanced documentation standards and error handling practices
Included memory management and code quality guidelines
Diagram Walkthrough
File Walkthrough
mfc-agent-rules.mdc
Comprehensive expansion of MFC development guidelines
.cursor/rules/mfc-agent-rules.mdc
guidelines