Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb5ad93

Browse files
Variable string (#60)
* Remove need for string lengthRemove the "requestedLength" arguments and use allocatable strings now that these are available.* Update the documentationThe readme is updated. Add users guide in markdown format and remove latex version.* Add more allocatable stringsRemove more dependences on fixed length character variables.* Update UsersGuide.mdAdd links to examples. Add info about optData functionality to the documentation.* bump minimal CMake version* Update UsersGuide.mdAlign code blocks.* Update UsersGuide.mdMore code formatting. Fix link to Apple.* Update UsersGuide.mdCaught a couple more alignment errors.* Update UsersGuide.mdFix an escape for a single underscore.* Update UsersGuide.mdFix code examples formatting.* Update UsersGuide.mdFix code example object names.* AddLegacyCallAdd back the legacy calls to stringValue and stringValueForKey so that the changes in this version are non-breaking. Those functions are now generic with either the requested length or not. Going forward, one should use the versions without the requested length and use allocated strings.* CharacterTruncationChange the returned character length in the legacy function to what was originally there to get rid of the string truncation warning issue.* Increase coverageIncrease coverage in stringValueForKey* Logical returnFix logical return and add test for it.* Update ValueClassTests.f90cover more stringValue tests* Add a News.md sectionA news page hanging off of the readme page is added for the latest and future news about changes.* Update FTValueClass.f90Just change the comments to reflect that stringValueA and stringValueR are overloaded as stringValue() and that the latter is deprecated but will still work with stringValue(requestedLength)---------Co-authored-by: Andrew Winters <andrew.ross.winters@liu.se>
1 parent061999f commitfb5ad93

17 files changed

+1466
-1487
lines changed

‎CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
1+
CMAKE_MINIMUM_REQUIRED(VERSION 3.15.0)
22
# Default compiler gfortran, otherwise cmake Fortran package will set it to f95
33
# You can override the compiler with cmake -DFTOBJ_COMPILER=
44
#set(FTOBJ_AR "/usr/bin/gcc-ar" CACHE STRING "Static archive command")

‎Docs/FTObjectLibrary.tex‎

Lines changed: 0 additions & 1432 deletions
This file was deleted.

‎Docs/FTObjectLibraryProject.md‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ predocmark:>
1717
facilitate writing generic object oriented Fortran programs. Reference counting
1818
is implemented to assist with memory management so that the lifespans of objects
1919
are properly maintained and are so that objects are deleted only when no other references are made to them.
20-
21-
22-
FTObjectLibrary tries, as much as the maturity of Fortran compilers allow, to
23-
use the new F2003/2008 features to make generic programming possible. The LCD
24-
for the library is gfortran, and as modern features get implemented in the
25-
compiler, FTObjectLibrary will be updated to include those features. In the meantime, there
26-
are a few workarounds that exist in the code.
2720

2821
The library includes three categories of classes:
2922

@@ -53,11 +46,11 @@ values.
5346

5447
#Documentation
5548

56-
Documentation can be found in thelinked pages, and in theuser's guide*FTObjectLibrary.pdf* found in the Docs directory.
49+
Documentation can be found in the[user's guide](UsersGuide.md).
5750

5851
#Examples
5952

60-
Examples can be found in the Examples directory and in the Testing directory. The examples include a simple reverse Polish calculator using a stack, and another showing the use of a linked list. The testing directory includes tests that can be run on the library, which themselves serve as examples of the use of all of the classes.
53+
Examples can be found in the[Examples](../Examples) directory and in the[Testing](../Testing) directory. The examples include a simple reverse Polish calculator using a stack, and another showing the use of a linked list. The testing directory includes tests that can be run on the library, which themselves serve as examples of the use of all of the classes.
6154

6255
#Building the Library
6356

‎Docs/News.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#News
2+
3+
May 11, 2025
4+
5+
The stringValue() and stringValueForKey() functions now use allocated strings, so the requestedLength argument is no longer necessary. Existing code can continue to use the older versions, but those versions are deprecated and undocumented.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp