Get rid of special cases to enable more compiler warnings
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
- Tipo di issue
- Refactoring
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- fortran
- Ambito
- build-system
Direzione di ricerca
La discussione menziona i confronti in virgola mobile di HOHQMesh, l’API di conversione di FTValue, gli auto-utilizzi no-op e le routine con interfacce implicite. Inizia esaminando queste aree e i makefile pertinenti; l’ambito e i criteri di completamento devono ancora essere definiti prima che possa iniziare l’implementazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
A good summary with good points.
- There is a set of FP comparisons in HOHQMesh that can be eliminated, and I am doing that now on a local branch. But we will have to keep the others in here unless someone comes up with a "safe" way to do floating point comparisons without having to compare to 0.0 at some point. It is also part of the API for FTValue that will convert an FP number to logical depending on if the argument is 0 or not zero. (I guess that could be fixed with a cast to integer.)
- I have used the no-op kind of trick in a few places. (e.g. IF(self % refCount() >= 0) CONTINUE )
But since the code has been written over the course of a decade, features have been added, but not necessarily retroactively. The whole issue is a quirk of the fortran language which requires explicit passing of the this/self object even if it is not used. - I used count because that's what is used elsewhere (other languages/frameworks) for counting the number of objects in a collection, and is shorter than "numberOfObjects", but it is easy to find and could be changed. I'll look into that.
- It is interesting that implicit procedures are now considered something to warn about, since has been an integral part of the language since the 1950's. Depending on dependency ordering, the fix is pretty easy simply by putting those routines in a module. The advantage of implicit interfaces is lack of dependencies, making compilation easier. The disadvantage is there is no checks on arguments. The makefiles would have to be modified for the new dependencies. HOHQMesh has a lot of files with implicit interfaces.
Originally posted by @DavidAKopriva in https://github.com/trixi-framework/FTObjectLibrary/issues/8#issuecomment-856889827
- Lingua principale
- Fortran
- Stelle
- 5
- Fork
- 2
- Merge medio
- 6h 47m
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di trixi-framework/FTObjectLibrary
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 45/100
trixi-framework/FTObjectLibrary#43 · 2 commenti ·
-
Add array assertion routinesApertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Spack installation supportAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
trixi-framework/FTObjectLibrary#13 · 3 commenti ·
Tutte le issue di trixi-framework/FTObjectLibrary
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
AppImage/appimage.github.io#9676 ·
I maintainer di solito rispondono entro 1 giorno
-
Flutter Improvement Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
getsentry/sentry-dart#4061 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Cocoanetics/SwiftBash#95 ·
-
Xcode 27Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
airbnb/HorizonCalendar#349 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
OpenwaterHealth/openmotion-bloodflow-app#696 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno