Skip to content

Commit

Permalink
Adding input test
Browse files Browse the repository at this point in the history
  • Loading branch information
ebranlard committed Aug 19, 2020
1 parent 8fca5c9 commit 781397c
Show file tree
Hide file tree
Showing 3 changed files with 400 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test-input/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
MAKE_ARGS=VERBOSE=1
FCC=gfortran
FFLAGS= -ffree-line-length-none -cpp -g -fcheck=all,no-array-temps -pedantic -fbacktrace

NWTC_SRC= ../modules/version/src/VersionInfo.f90 ../modules/nwtc-library/src/NWTC_Library_Types.f90 ../modules/nwtc-library/src/SingPrec.f90 ../modules/nwtc-library/src/NWTC_Base.f90 ../modules/nwtc-library/src/SysGnuLinux.f90 ../modules/nwtc-library/src/NWTC_IO.f90

MAIN= test_input.f90

all: compile test


compile: prog $(BUILD_DIR)

prog: $(NWTC_SRC) $(MAIN)
$(FCC) $(FFLAGS) $(MAIN) $(NWTC_SRC) -o prog


clean:
rm *.o

test:
@echo "------------------------------------------------------------"
@./prog
@echo "------------------------------------------------------------"


18 changes: 18 additions & 0 deletions test-input/Test.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
!A comment1
%A comment2
#A comment3
---- comment 4
#table name:MyTable row:2 , col:3 header:2, format:ISF ignored comment
Col1 Col2 Col3 ignored comment
(Unit1) (Unit2) (unit3) ignored comment
0 "a" 3.4 ignored comment
1 "b" 2 ignored comment
-------------------
0.0 SomeKey ignored text
0.0, 1.0 SomeKeyList ignored text
-------------------
#outlist Ignored comment
"RotSpeed, RotPower"
"GenSpeed"
END

Loading

0 comments on commit 781397c

Please sign in to comment.