fortpy
fortpy copied to clipboard
Python Emacs Intellisense and Unit Testing Support for Fortran
Thanks a lot for fortpy - it makes my life as an addict of both emacs and Fortran a lot easier :-) One issue I regularly run into is the...
If there is a blank line in the summary tag, i.e.,: ``` !!Stuff !! !! More stuff ``` then the parser breaks thinking that there is a opening or closing...
The current version of fortpy raises these issues on tests that used to run: ``` ERROR: [autovar] could not parse value '362880.00000000000' of type 'int'. ``` such as symlib's factorial_dp_rank1.
``` factorial_int_rank1.f90:6:6: use fortpy 1 Fatal Error: Cannot read module file 'fortpy.mod' opened at (1), because it was created by a different version of GNU Fortran compilation terminated. gfortran: error:...
At times it is nice to see that errors are handled properly or to see that your code is failing where you know it should. This is equivalent to pythons...
When I run my unit tests, I get an error. ``` (BZI) src$ runtests.py . subroutine symmetryReduceKpointList COPY /users/jj/codes/kgridgen/src/generatekpoints.f90 CASES: Wrote Test: kpts-sc Wrote Test: wts-sc Running for compilers: gfortran...
``` Traceback (most recent call last): File "/usr/local/bin/runtests.py", line 184, in do_testing(args) File "/usr/local/bin/runtests.py", line 48, in do_testing t.writeall(args["codedir"]) File "/usr/local/lib/python2.7/dist-packages/fortpy/testing/tester.py", line 595, in writeall self.tgenerator.write(self._codefolder) File "/usr/local/lib/python2.7/dist-packages/fortpy/testing/generator.py", line 84,...
If a precompiler tag like `#endif` is commented out, `fortpy` still detects it as needing precompilation. This can be fixed by updating the pre-compiler regex to be `^[\s]#endif$` in `fortpy.parsers.module`.
If module file names have upper case characters and the shell is not setup to ignore case sensitivity, it can't find the module files.
In symlib's ```symmetry.get_spaceGroup_atomTypes``` unit tests the following error occurs: ``` get_spaceGroup_sg_op.f90:9.9: real(dp), pointer :: sg_fract(:,:) 1 Error: Symbol 'dp' at (1) has no IMPLICIT type get_spaceGroup_sg_op.f90:10.9: real(dp), pointer :: sg_op(:,:,:)...