Different CHARACTER lengths (3/4) in array constructor, how to trim strings - fortran
问题 According to an answer to a similar question, I have declared the characters as indicated here gfortran does not allow character arrays with varying component lengths . However I would like to use a trim function because I need to add spaces to manually pad the names and these variables are then used in another part of the code. Can I trim at the same time as creating the array? Error: Different CHARACTER lengths (3/4) in array constructor at (1) If I add random characters to make them the