Commit Graph

66 Commits

Author SHA1 Message Date
Martin Diehl 0324e7ece1 parameters should be spelled in capitals 2023-06-04 13:52:31 +02:00
Martin Diehl ca1c22874b consistent and short 2023-06-04 13:51:05 +02:00
Martin Diehl d0b832e6f1 consistent with naming in HDF5_utilities 2023-06-03 17:06:32 +02:00
Martin Diehl b6610f4499 a few more tests 2022-12-07 13:03:42 +01:00
Philip Eisenlohr af24d47b9a Shorter YAML code 2022-11-25 07:55:31 +00:00
Philip Eisenlohr 5c688345ed more verbose and specific messaging in self-test and errors 2022-10-27 15:39:48 -04:00
Martin Diehl df5487e1a9 Re-written YAML types
Strict typing for YAML

New access pattern requires to specify the expected type, i.e. 'scalar', 'list', or 'dict'. This ensures that the node offers the expected functionality instead of polluting 'tNode' with dummy functions which throw error messages if not overwritten.

The restructuring of the code allows to hierarchically construct methods without much code duplication.

Some aspects of the error messaging system have been improved.
2022-10-25 16:09:36 +00:00
Martin Diehl b8c3d75700 [skip sc] enforce interfaces (quick fix: declare as external) 2022-06-21 22:59:01 +02:00
Martin Diehl 78838c2f75 consistent variants including space 2022-06-08 23:27:09 +02:00
Martin Diehl 563d566a3f made two loops faster
the most annoying one is still slow.
2022-04-14 06:39:19 +02:00
Martin Diehl ca0df3389a avoid long pointer transversal 2022-04-14 00:06:54 +02:00
Martin Diehl 00671f943b easier to understand 2022-04-13 23:45:14 +02:00
Martin Diehl 945b10e3e6 avoid segmentation fault (null is returned if not scalar) 2022-03-20 00:00:52 +01:00
Martin Diehl f1051ec28f polishing 2022-01-21 23:34:42 +00:00
Sharan Roongta c2a822d8fd keys() function for dictionary as in Python.
Does not work for gfortran which fails with an ICE.
2022-01-20 23:45:47 +00:00
Martin Diehl 2fb368cf8c consistent space (as in 'end module' etc) 2021-12-06 07:59:40 +01:00
Philip Eisenlohr da9fdf53d2 consistent indentation and line-spacings in reporting 2021-11-15 12:35:44 -05:00
Martin Diehl f22f30e05d same functionality as for 1D 2021-07-24 14:27:00 +02:00
Martin Diehl d6ce721a25 need to check type of leaf
otherwise, using a [list] where a scalar is expected results in a crash,
not in a meaningful error message
2021-07-24 12:10:59 +02:00
Martin Diehl 2f1fa8292b unify style to majority of occurences 2021-07-16 10:30:45 +02:00
Martin Diehl bbb292d093 polishing 2021-04-07 20:39:29 +02:00
Martin Diehl 09beb8f38c white space adjustments 2021-04-03 18:00:41 +02:00
Philip Eisenlohr 8ac4850dd3 more consistent error messages 2021-03-31 10:55:25 -04:00
Sharan Roongta 7e8f630a62 consistent 2021-03-29 21:44:37 +02:00
Sharan Roongta c8e48090a2 Merge remote-tracking branch 'origin/development' into YAML-error-message 2021-03-29 21:38:35 +02:00
Sharan Roongta aa5cd76d33 function not needed 2021-03-29 13:47:23 +02:00
Martin Diehl e6143f6eec source not needed here
I don't think 'shape' is possible without full inspection of the stored
data structure
2021-03-29 06:40:33 +02:00
Sharan Roongta ecf5639360 Merge remote-tracking branch 'origin/development' into YAML-error-message 2021-03-28 21:59:08 +02:00
Sharan Roongta b1cca4f5bd polishing 2021-03-24 15:50:39 +01:00
Sharan Roongta ce91537b0f get_asXXs --> get_as1dXX 2021-03-11 18:40:16 +01:00
Sharan Roongta 158afac5b9 Merge remote-tracking branch 'origin/development' into 2d-table-yaml 2021-03-11 16:56:27 +01:00
Sharan Roongta 0a2810230e Merge commit 'fd24c9c2a193972ea17e94ba848d87d2aeb43028' into YAML-error-message
changes made by @p.eisenlohr in another branch
2021-03-08 20:58:30 +01:00
Philip Eisenlohr 438167804c if( polishing 2021-03-04 15:11:39 -05:00
Sharan Roongta 5d51da11e5 trying new structure to have better yaml error messages 2021-03-04 20:06:32 +01:00
Sharan Roongta 357fd81be4 read in 2d float arrays in yaml
test added too
2021-03-04 19:08:41 +01:00
Sharan Roongta f3a2c49b39 read in 2d arrays in yaml 2021-03-01 19:03:50 +01:00
Philip Eisenlohr fd24c9c2a1 simplified tNode_get_byKey_asIndex and tNode_getKey_byIndex==>get_byIndex_asKey; syntax polishing 2021-02-27 13:22:46 -05:00
Philip Eisenlohr c0620037a1 simplified tNode_get_byKey_asIndex and tNode_getKey_byIndex; syntax polishing 2021-02-27 13:14:53 -05:00
Sharan Roongta 4edf8e1c6c better yaml error description for type mismatch 2021-02-26 22:33:22 +01:00
Sharan Roongta 4b25097a9a Merge branch 'clean-material.yaml-parse' into development 2020-10-29 12:50:40 +01:00
Martin Diehl e464f11412 polishing 2020-10-24 17:26:24 +02:00
Sharan Roongta 3dbc07a26b better error description 2020-10-23 18:43:52 +02:00
Sharan Roongta 85b96209e3 use existing error description 2020-10-01 01:51:31 +02:00
Sharan Roongta 898306f82e sanity check for key mismatch 2020-09-30 23:33:09 +02:00
Martin Diehl 797073b015 print choses output unit automatically, no need to rely on 6
also shorter...
2020-09-17 19:28:41 +02:00
Martin Diehl 22544d6978 systematic naming 2020-09-13 12:43:49 +02:00
Martin Diehl 5b83c8ad3c use 'error stop'
- does not require IO
- prints stack trace
2020-09-13 12:09:32 +02:00
Sharan Roongta 7754a1ea56 Restructuring for material.yaml 2020-08-15 16:08:46 +02:00
Martin Diehl e2a0e98267 small polishing 2020-06-23 11:06:41 +02:00
Sharan Roongta cdb4a11a2e proper error message; Comments starting point is standardized 2020-06-18 00:17:43 +02:00