Changeset 3083 for trunk/LMDZ.TITAN/libf/muphytitan/cfgparse.F90
- Timestamp:
- Oct 12, 2023, 10:30:22 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/muphytitan/cfgparse.F90
r1897 r3083 1 ! Copyright Jérémie Burgalat (2010-2015,2017)1 ! Copyright (c) (2013-2015,2017) Jeremie Burgalat (jeremie.burgalat@univ-reims.fr). 2 2 ! 3 ! jeremie.burgalat@univ-reims.fr3 ! This file is part of SWIFT 4 4 ! 5 ! This software is a computer program whose purpose is to provide configuration 6 ! file and command line arguments parsing features to Fortran programs. 5 ! Permission is hereby granted, free of charge, to any person obtaining a copy of 6 ! this software and associated documentation files (the "Software"), to deal in 7 ! the Software without restriction, including without limitation the rights to 8 ! use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 ! the Software, and to permit persons to whom the Software is furnished to do so, 10 ! subject to the following conditions: 7 11 ! 8 ! This software is governed by the CeCILL-B license under French law and 9 ! abiding by the rules of distribution of free software. You can use, 10 ! modify and/ or redistribute the software under the terms of the CeCILL-B 11 ! license as circulated by CEA, CNRS and INRIA at the following URL 12 ! "http://www.cecill.info". 12 ! The above copyright notice and this permission notice shall be included in all 13 ! copies or substantial portions of the Software. 13 14 ! 14 ! As a counterpart to the access to the source code and rights to copy, 15 ! modify and redistribute granted by the license, users are provided only 16 ! with a limited warranty and the software's author, the holder of the 17 ! economic rights, and the successive licensors have only limited 18 ! liability. 19 ! 20 ! In this respect, the user's attention is drawn to the risks associated 21 ! with loading, using, modifying and/or developing or reproducing the 22 ! software by the user in light of its specific status of free software, 23 ! that may mean that it is complicated to manipulate, and that also 24 ! therefore means that it is reserved for developers and experienced 25 ! professionals having in-depth computer knowledge. Users are therefore 26 ! encouraged to load and test the software's suitability as regards their 27 ! requirements in conditions enabling the security of their systems and/or 28 ! data to be ensured and, more generally, to use and operate it in the 29 ! same conditions as regards security. 30 ! 31 ! The fact that you are presently reading this means that you have had 32 ! knowledge of the CeCILL-B license and that you accept its terms. 15 ! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 ! IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 ! FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 ! COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 ! IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 ! CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 33 21 34 22 !! file: cfgparse.F90 35 23 !! summary: Configuration file parser source file. 36 24 !! author: J. Burgalat 37 !! date: 2013-2015,2017 25 !! date: 2013-2015,2017,2022 38 26 39 27 #include "defined.h" … … 330 318 oname = zsname//"/"//zpname 331 319 IF (PRESENT(sname)) sname = zsname 332 IF (PRESENT(pname)) pname = zpname 320 IF (PRESENT(pname)) pname = zpname 333 321 END FUNCTION op_format 334 322 … … 418 406 !! 419 407 !! Otherwise it is assumed to be the basename of the option. 420 !! 408 !! 421 409 !! A valid option (base) name is an alphanumeric sequence in lower-case that always begin by 422 410 !! a letter. … … 479 467 IF(.NOT.ALLOCATED(this%options)) RETURN 480 468 IF (.NOT.PRESENT(section)) THEN 481 num = SIZE(this%options) 469 num = SIZE(this%options) 482 470 ELSE 483 471 DO i=1, SIZE(this%options)
Note: See TracChangeset
for help on using the changeset viewer.