Skip to content

Commit

Permalink
Merge pull request #785 from mkstoyanov/remove_deprecated_fortran
Browse files Browse the repository at this point in the history
removed fortran 90
  • Loading branch information
mkstoyanov authored Oct 24, 2024
2 parents 07d54cc + cec5488 commit eeb73a5
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 3,957 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ option(Tasmanian_ENABLE_MPI "Enable MPI support for Tasmanian (stable)"
option(Tasmanian_ENABLE_SWIG "Regenerate Fortran 2003 bindings with SWIG (developers only)" OFF)
option(Tasmanian_ENABLE_DOXYGEN "Enable Doxygen documentation for Tasmanian (complete)" OFF)

option(Tasmanian_ENABLE_FORTRAN90 "(deprecated, untested) Enable the old Fortran 90 interface of Tasmanian" OFF)
if (Tasmanian_ENABLE_FORTRAN90)
message(FATAL_ERROR "Tasmanian_ENABLE_FORTRAN90 and the Fortran 90 interface have been removed since v8.2")
endif()

# treat those similar to options, but give values other than ON/OFF
set(Tasmanian_MATLAB_WORK_FOLDER "" CACHE PATH "Enable MATLAB interface and use the path for the MATLAB work folder (stable)")
Expand Down Expand Up @@ -147,9 +149,6 @@ add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/Addons" "${CMAKE_CURRENT_BINA
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/Tasgrid/" "${CMAKE_CURRENT_BINARY_DIR}/Tasgrid")

if (Tasmanian_ENABLE_FORTRAN)
if (Tasmanian_ENABLE_FORTRAN90)
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/InterfaceFortran" "${CMAKE_CURRENT_BINARY_DIR}/Fortran")
endif()
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/InterfaceSwig"
"${CMAKE_CURRENT_BINARY_DIR}/Fortran03")
endif()
Expand Down
2 changes: 1 addition & 1 deletion Doxygen/InterfaceFortran2003.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Tasmanian comes with Fortran 2003 interface generated by [Swig-Fortran](https://github.com/swig-fortran). The automatic generation makes the code easy to maintain and support, and the generation process is done off-line by the development team; hence, users are not required to install Swig and can use the interface with just a regular Fortran compiler. Furthermore, the 2003 standard support objects which allows for the OOP interface of Tasmanian C++ to be duplicated similar to Python and thus the on-line C++ Doxygen documentation is now relevant to Fortran as well.

The new module is called `Tasmanian` (without the sg suffix), and it is incompatible with the Fortran 90/95, i.e., use one or the other but not both. A `TasmanianSparseGrid` type is introduced as before, but the interface is fully object-oriented. Currently, the Tasmanian Sparse Grid module has been implemented together with the MPI Addons; the Dream module and the remainder of the Addon templates are not supported (possibly in the future).
The module is called `Tasmanian` and requires Fortran 2003 and a class `TasmanianSparseGrid` type is used. Currently, the Tasmanian Sparse Grid module has been implemented together with the MPI Addons; the Dream module and the remainder of the Addon templates are not supported (possibly in the future).

Simple example:
```
Expand Down
62 changes: 0 additions & 62 deletions InterfaceFortran/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit eeb73a5

Please sign in to comment.