Commit Graph

203 Commits

Author SHA1 Message Date
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
Martin Diehl ce2cb16921 better define variables close to their usage 2019-03-26 07:36:55 +01:00
Martin Diehl 62694eddf8 clearer structure 2019-03-12 21:48:33 +01:00
Martin Diehl 643ed89447 not needed anymore 2019-03-12 00:07:44 +01:00
Martin Diehl 7bfd7a42ea empty file needs special case for Ifort 2019-03-09 13:43:56 +01:00
Martin Diehl 02c7b1056a use central functionality
IO function reads numerics.config and debug.config
2019-03-09 11:11:40 +01:00
Martin Diehl af707c671c improved IO functionality
- naming for file opening follows python
- damage modules do not read from file any more
2019-03-08 23:16:56 +01:00
Martin Diehl 363a95d5b7 not needed 2019-03-08 19:07:19 +01:00
Martin Diehl 0f6bf38299 unused functionality 2019-03-08 19:07:19 +01:00
Martin Diehl b03208bc69 unused function 2019-03-07 22:19:08 +01:00
Martin Diehl 63e2ea7d8f was not use (anymore) 2019-02-16 12:49:28 +01:00
Martin Diehl efe9823e62 clearer logic for preprocessor statements 2019-02-16 10:43:02 +01:00
Martin Diehl 9a3921ea84 ifdef statements grouped together
unless they belong to a group of functions, like opening files or
interpreting lines
2019-02-16 10:20:53 +01:00
Martin Diehl f45ba0ff5b functions specific for MSC.Marc and/or Abaqus
these functions are very specific for the input files and might be
better located in the respective mesh module
2019-02-03 08:27:20 +01:00
Martin Diehl 2c7553653b only used by MSC.Marc 2019-02-03 08:11:19 +01:00
Martin Diehl 40ad1aef2f was not used 2019-02-03 08:07:58 +01:00
Martin Diehl a92937a7e3 grid does reading in of geometry independently 2019-02-03 08:06:53 +01:00
Martin Diehl 3edbfc1cb5 bugfix:
infinite loop for geom file without new line at end
also, a lot of cleaning
2019-02-02 15:10:35 +01:00
Martin Diehl fbd8912237 Merge branch 'development' into 53-separate-mesh-for-different-solvers-3 2019-01-31 11:41:45 +01:00