New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
str_c_to_for.h90 in branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/OBS – NEMO

source: branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/OBS/str_c_to_for.h90 @ 2281

Last change on this file since 2281 was 2281, checked in by smasson, 14 years ago

set proper svn properties to all files...

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1   SUBROUTINE str_c_to_for( cd_str )
2      !!---------------------------------------------------------------------
3      !!   
4      !!                     *** ROUTINE str_c_to_for ***
5      !!
6      !! ** Purpose : Loop over a string and replace all non-printable
7      !!              ASCII characters with spaces assuming English
8      !!              characters only
9      !!
10      !! ** Method  : Loop over a string and replace all non-printable
11      !!              ASCII characters with spaces assuming English
12      !!              characters only
13      !!
14      !! ** Action  :
15      !!
16      !! History : 
17      !!        ! : 06-05 (K. Mogensen) Original
18      !!        ! : 06-05 (A. Vidard) Cleaning up
19      !!        ! : 06-10 (A. Weaver) More cleaning
20      !!---------------------------------------------------------------------
21      !! * Arguments
22      CHARACTER(LEN=*), INTENT(INOUT) :: cd_str
23
24      !! * Local declarations
25      INTEGER :: &
26         & ji
27
28      DO ji = 1, LEN( cd_str )
29         IF (     ( IACHAR( cd_str(ji:ji) ) > 128 ) &
30            & .OR.( IACHAR( cd_str(ji:ji) ) < 32  ) ) cd_str(ji:ji) = ' '
31      END DO
32
33   END SUBROUTINE str_c_to_for
Note: See TracBrowser for help on using the repository browser.