Skip to content

Get alloc string #265

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 12 commits into from
Mar 17, 2017
Merged

Get alloc string #265

merged 12 commits into from
Mar 17, 2017

Conversation

jacobwilliams
Copy link
Owner

Added routines for getting an allocatable string vector.
Added a new string_info routine.

Fixes #245

@jacobwilliams
Copy link
Owner Author

The new Test 25 is failing on Travis with Fortran runtime error: Integer overflow when calculating the amount of memory to allocate. I don't get this locally with gfortran 6.1 or ifort. Look into it later.

@@ -6965,7 +6964,7 @@ subroutine get_chars_from_array(json, element, i, count)
if (.not. initialized) then
! string length long enough to hold the longest one
allocate( character(kind=CK,len=max_len) :: vec(count) )
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably causing test to fail on Travis (with the older gfortran). See #265.

@codecov-io
Copy link

codecov-io commented Mar 17, 2017

Codecov Report

Merging #265 into master will decrease coverage by 1%.
The diff coverage is 70.73%.

@@            Coverage Diff             @@
##           master     #265      +/-   ##
==========================================
- Coverage   87.08%   86.07%   -1.01%     
==========================================
  Files           3        3              
  Lines        3669     3791     +122     
==========================================
+ Hits         3195     3263      +68     
- Misses        474      528      +54

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 75b95e9...1f285e9. Read the comment docs.

@jacobwilliams jacobwilliams merged commit 763b170 into master Mar 17, 2017
@jacobwilliams jacobwilliams deleted the get_alloc_string branch March 17, 2017 02:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants