Commit Graph

221 Commits

Author SHA1 Message Date
Martin Diehl 77d1ed465e divide and test 2021-05-22 11:09:50 +02:00
Martin Diehl 9a37b6ddbe support windows line endings
if first line ends with CRLF, convert all CR to ' ' (trailing spaces
will cause no harm)
2021-05-19 09:08:41 +02:00
Martin Diehl bbb292d093 polishing 2021-04-07 20:39:29 +02:00
Martin Diehl 2e96fcf768 Merge branch 'development' into spring-cleaning 2021-03-29 07:26:17 +02:00
Martin Diehl 7072ab0984 non-converging simulation is an error 2021-03-27 17:07:36 +01:00
Sharan Roongta b1cca4f5bd polishing 2021-03-24 15:50:39 +01:00
Martin Diehl ef45e856a1 don't scan the whole file in case of proper line endings
might lead to strange behavior if people randomly distribute CRs in
their file. But that actually deserves to get strange behavior
+ Test
2021-02-10 09:08:57 +01:00
Martin Diehl 5b8e199627 avoid errors related to CRLF (windows) file endings 2021-02-10 00:02:38 +01:00
Martin Diehl 5bed0787ed replace log scaling with geometric regression scaling
more flexibility in time discretization via parameter 'r'.
Also, changed variable names to reflect names in loadcase.yaml
2020-11-25 18:56:03 +01:00
Martin Diehl 9c75674b20 unused 2020-11-12 07:50:56 +01:00
Martin Diehl cd7ada0da9 use Fortran internals for error handling 2020-11-11 20:09:14 +01:00
Martin Diehl 3dd5eaf1c1 clean exit with stack trace 2020-11-11 14:06:21 +01:00
Sharan Roongta 3dbc07a26b better error description 2020-10-23 18:43:52 +02:00
Martin Diehl 9550b0d8a2 mandatory N_constituents 2020-10-07 17:44:54 +02:00
Sharan Roongta 776901cb81 microstructure --> material 2020-10-01 12:43:05 +02:00
Sharan Roongta a61bf3bb26 file endings, file header can be added, take care of EOF 2020-09-29 19:55:25 +02:00
Sharan Roongta 0de54404ee skip empty lines; yaml file optional start/stop indicator can be added 2020-09-25 04:07:40 +02:00
Martin Diehl 41fbc58c1b standard conforming name 2020-09-22 13:09:12 +02:00
Martin Diehl 63f9078f04 don' hardcode output unit
replaced remaining write(6,..), flush(6) with write(OUTPUT_UNIT,...),
flush(OUTPUT_UNIT)
2020-09-22 12:15:36 +02:00
Martin Diehl 1d2e9324f1 do not rely on 6=STDOUT, 0=STDERR 2020-09-19 10:51:07 +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 5b83c8ad3c use 'error stop'
- does not require IO
- prints stack trace
2020-09-13 12:09:32 +02:00
Martin Diehl 16f8df3420 standard "docstring"
- start with capital
- active form
- end with full stop
2020-09-13 11:32:36 +02:00
Martin Diehl 3c5b89ac78 not needed anymore 2020-09-13 11:28:48 +02:00
Martin Diehl 07f23d3d1d no need for alias 2020-09-13 11:21:43 +02:00
Martin Diehl 566ab7e7d9 reading in VTR files
will replace geom file in the near future
2020-09-12 14:43:04 +02:00
Philip Eisenlohr d7932aeacb Merge branch 'vtr-as-input-prerequisites' into 'development'
prerequisites for using VTR as input format for spectral solver

See merge request damask/DAMASK!214
2020-09-09 18:13:09 +02:00
Martin Diehl 95af422d5f complain about invalid microstructure
many error messages are not needed any more
2020-09-08 23:49:44 +02:00
Martin Diehl fb68d430ec decode only relevant part of the base64 string 2020-09-08 23:15:43 +02:00
Martin Diehl 3fdcebc0a0 following python recommendation
functions have "active" docstring
2020-09-06 17:50:32 +02:00
Sharan Roongta 7754a1ea56 Restructuring for material.yaml 2020-08-15 16:08:46 +02:00
Martin Diehl 68bf21c900 can use string of dynamic length 2020-08-09 06:40:43 +02:00
Martin Diehl 8de3b67c26 no silent crash 2020-07-13 21:13:53 +02:00
Sharan Roongta 78bf8b0ab7 bugfix: close file before returning 2020-06-25 11:25:39 +02:00
Sharan Roongta 78b6b3ecdb Merge branch 'development' into YAML-compatible-numerics 2020-06-25 11:02:54 +02:00
Sharan Roongta cdb4a11a2e proper error message; Comments starting point is standardized 2020-06-18 00:17:43 +02:00
Martin Diehl 5c544a6e4e bugfix
- IO_read sanities files such that they end with EOL (unless 0 byte)
- IO_readline simply counts EOL to determine number of lines
2020-06-05 20:58:36 +02:00
Martin Diehl 9cd9ee71c5 off-by-one issue fixed 2020-06-05 14:44:31 +02:00
Martin Diehl a9e0e93213 need to handle case of zero length file when splitting 2020-06-05 13:38:40 +02:00
Martin Diehl 512e54a7ee before we forget ... 2020-06-02 17:34:58 +02:00
Martin Diehl 742b3718ec using iostat solved the issue for ifort
but for a zero length file, ifort returns -1
2020-06-02 10:09:19 +02:00
Martin Diehl d31417b050 Ifort can not handle 0-length files
Not sure whether this is a bug or not:
https://software.intel.com/en-us/forums/intel-fortran-compiler/topic/856789
2020-06-02 09:31:26 +02:00
Martin Diehl 79c17ec407 use names known from python 2020-06-02 07:57:19 +02:00
Martin Diehl f84e5aaaf9 bugfix (do not keep EOL in last string)
simplified further
2020-06-02 07:39:27 +02:00
Martin Diehl 37d7e593e8 correct counting of lines
counts like "wc -l" either with or without EOL in last line
2020-06-01 22:09:28 +02:00
Martin Diehl 2badf257fc same information but shorter 2020-06-01 21:36:36 +02:00
Sharan Roongta 677e081937 YAML related errors 2020-05-21 21:03:39 +02:00
Martin Diehl ae20ab8d42 more reasonable name 2020-05-16 17:05:03 +02:00
Martin Diehl f3be26ffa2 long error and warning functions at the end of public methods 2020-04-28 10:05:36 +02:00
Sharan Roongta b9fec2a4cf Public functions required 2020-04-22 12:23:09 +02:00
Martin Diehl 33aaa94865 use centralized (and tested) funtionality 2020-03-14 17:29:08 +01:00
Martin Diehl a1f36b14d3 simplifying
still trying to figure out how to best use HDF5 for reference stiffness
2020-03-09 14:05:49 +01:00
Martin Diehl cf8e3fb91a single source of truth 2020-03-09 14:00:58 +01:00
Martin Diehl bedcd0ad8c sanity check for homogenization
number of (constituent) per microstructure need to match Nconstituents
 in homogenization.
2020-02-22 11:14:11 +01:00
Sharan Roongta ef4b7437f3 Input arguments of a function to be declared first. 2020-02-20 14:01:26 +01:00
Martin Diehl c2c84d698f Merge remote-tracking branch 'origin/development' into MiscImprovements 2020-02-11 17:11:43 +01:00
Martin Diehl d54b8714e1 avoid invalid error access 2020-01-29 23:42:50 +01:00
Martin Diehl c2cdcb17f7 wrong string 2020-01-29 23:04:15 +01:00
Martin Diehl 59fe9d06b0 shortening 2020-01-29 22:53:19 +01:00
Martin Diehl b8263519ca ignore empty lines 2020-01-29 08:00:28 +01:00
Martin Diehl 57db134c6d polishing 2020-01-28 23:44:07 +01:00
Martin Diehl 79aeea052f does not exist anymore (is not needed) 2020-01-26 21:07:21 +01:00
Martin Diehl cda1f4acab more tests
failed unitTests report consistently with "internal error"
2020-01-26 20:53:13 +01:00
Martin Diehl a4134b4552 doing some internal checks
trivial, but better safe then sorry
2020-01-26 20:24:09 +01:00
Martin Diehl 830b05005f read file only once 2020-01-26 19:56:30 +01:00
Martin Diehl 62865e779d polishing 2020-01-26 18:31:56 +01:00
Martin Diehl a6e979ae1f simplified parsing of strings, floats, and ints
invalid characters for interpretation as float and int now raise error,
no warning
requesting invalid chunk now raises error, no warning
2020-01-26 18:23:23 +01:00
Martin Diehl 13107abd39 not working and significat efforts needed to test it 2020-01-26 07:44:22 +01:00
Martin Diehl 8a2a9d3861 avoid direct file operations 2020-01-25 13:30:42 +01:00
Martin Diehl f0ad18102d preparing to clean FEsolving
should not have solver dependent functionality
2020-01-23 13:49:12 +01:00
Martin Diehl cc67b1bd3b automatic length determination for more flexibility 2020-01-23 07:29:38 +01:00
Martin Diehl eb7bd41acd no need for special functions 2020-01-12 16:08:38 +01:00
Martin Diehl 9d1543c9cc functionality was used only once 2020-01-12 01:54:38 +01:00
Martin Diehl ddd8027b8a autodetect string length 2020-01-12 00:10:42 +01:00
Martin Diehl bd6f2a6b5c consistent string length 2020-01-04 19:01:36 +01:00
Martin Diehl 3999c0b630 is not used anymore (and IO_fixedXXXvalue seem to be superfluous) 2020-01-04 17:29:25 +01:00
Martin Diehl bd5f963260 polishing 2020-01-04 16:54:07 +01:00
Martin Diehl 27a6d1d682 private functions do not need a prefix 2020-01-02 15:14:12 +01:00
Martin Diehl af0a4c5d26 unused 2019-12-26 15:24:37 +01:00
Martin Diehl 0d975e7023 polishing
- default string length
- Nslip/Ntwin/Ntrans not stored in state anymore
2019-12-21 12:42:18 +01:00
Martin Diehl 34af10fac1 using default string length 2019-12-21 12:39:54 +01:00
Martin Diehl b10e862be8 the compiler can do the counting 2019-12-21 07:34:40 +01:00
Martin Diehl a0a99c526b some remaining IntOut format strings 2019-12-11 19:28:31 +01:00
Martin Diehl 7ecb0245ec simplified (use novel i0 format specifier) 2019-12-07 11:12:46 +01:00
Martin Diehl ffb112b0d8 Merge branch 'development' into DADF5-improvements 2019-10-30 17:16:54 +01:00
Martin Diehl c1cf64bf00 was not used/tested 2019-10-24 12:15:22 +02:00
Martin Diehl dfe65e406d restart for commercial FE solvers untested
better no code than unreliable code. If functionality is needed,
implement it without the use of publicly writeable variables
2019-10-23 22:13:31 +02:00
Martin Diehl 0b4605361b plotv only needed for postResults 2019-10-20 19:23:50 +02:00
Martin Diehl 2b68c108f0 read from memory, not from file 2019-10-17 05:54:08 +02:00
Martin Diehl 7611513bb8 strange indentation 2019-10-12 22:18:55 +02:00
Martin Diehl 02fef16b38 used only by MARC/Abaqus 2019-09-23 06:28:10 -07:00
Martin Diehl 09c1150e3c more error checking 2019-09-20 18:16:08 -07:00
Martin Diehl e8ed25d361 messages were not used anymore 2019-09-20 06:40:21 -07:00
Martin Diehl 5ab8f55f21 [skip ci] fixed indentation 2019-09-19 12:58:51 -07:00
Martin Diehl 7ad343c9b6 polishing 2019-06-29 15:06:47 -07:00
Martin Diehl 2c4f1eb173 adjusting indentation 2019-06-15 20:37:53 +02:00
Martin Diehl 8956f7f6da pInt not needed 2019-06-11 14:52:27 +02:00
Martin Diehl 346c7c4a7f one implicit none is enough 2019-05-14 23:12:32 +02:00
Martin Diehl 51e19048f7 pInt not needed anymore 2019-05-14 22:52:33 +02:00
Martin Diehl 0335207956 complex orientation initialization conflicts with phase field
- easier to do as pre processing (python)
- ensures same solution independently of random number
2019-04-13 00:37:51 +02:00