Skip to content
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

bug: buildfunctions .f90 only, not .F90 #696

Open
hkershaw-brown opened this issue Jul 5, 2024 · 2 comments
Open

bug: buildfunctions .f90 only, not .F90 #696

hkershaw-brown opened this issue Jul 5, 2024 · 2 comments
Assignees
Labels
build-system issues related to building dart

Comments

@hkershaw-brown
Copy link
Member

hkershaw-brown commented Jul 5, 2024

🐛 Your bug may already be reported!

Describe the bug

  1. List the steps someone needs to take to reproduce the bug.
    Add some code you would like to build as part of dart:
    assimilation_code/modules/assimilation/cheesecake_filter_mod.F90

  2. What was the expected outcome?
    That cheesecake_filter_mod.F90 would get included in the list of files to compile and then compiled in to dart (filter, pmo, whatever)

  3. What actually happened?
    cheesecake_filter_mod.F90 is not found.

Error Message

/Users/hkershaw/DART/Bugs/issue_696/models/lorenz_96/cheesecake.f90:2:5:

    2 | use cheesecake_filter_mod
      |     1
Fatal Error: Cannot open module file 'cheesecake_filter_mod.mod' for reading at(1): No such file or directory
compilation terminated.

Which model(s) are you working with?

lorenz_96, but could be any.

Version of DART

Which version of DART are you using?
You can find the version using git describe --tags

Have you modified the DART code?

Yes, to give an example for .F90 code:
https://github.com/hkershaw-brown/DART/tree/bigF90

v11.6.0-1-g2a8903ca3

Build information

Please describe:

  1. mac M2 (note case insensitive filesystem)
  2. gnu
@hkershaw-brown hkershaw-brown self-assigned this Jul 5, 2024
hkershaw-brown added a commit to hkershaw-brown/DART that referenced this issue Aug 14, 2024
You will need to add these to your FLAGS if you want to try the ifdefs with gfortran
-cpp -DHELLO
@hkershaw-brown
Copy link
Member Author

also .f08? to use external code, e.g. https://github.com/dennisdjensen/fortran-testanything.git

@hkershaw-brown hkershaw-brown added the build-system issues related to building dart label Oct 1, 2024
@hkershaw-brown
Copy link
Member Author

GSI2DART runs cpp as part of quickbuild.sh

# run the c preprocessor on enkf/kinds.F90
\rm -f ../enkf/mykinds.f90
cpp -P -D_REAL8_ -traditional-cpp ../enkf/kinds.F90 > ../enkf/mykinds.f90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-system issues related to building dart
Projects
None yet
Development

No branches or pull requests

1 participant