Commit 20f5ffde670bd10fdd5d66b6fef5349f679b7057

Authored by Elena.Budnik
1 parent 6d56aab2
Exists in master

lcal modifs

Sources/Makefile
... ... @@ -5,8 +5,8 @@ include ../env.sh
5 5 # *************************** COMPILER SETTINGS *****************************
6 6 CXX = g++
7 7 CXXFLAGS = -std=c++11 -pedantic -fPIC -Wall -Wextra
8   -INCLUDE = -I${DDDIR}/include/DDClientLibC -I${TINYDIR}/include
9   -LIB = -L${DDDIR}/lib -L${TINYDIR}/lib
  8 +INCLUDE = -I${DD_DIR}/include/DDClientLibC -I${TINYDIR}/include
  9 +LIB = -L${DD_DIR}/lib -L${TINYDIR}/lib
10 10 LKLIBS = -lDDClientLibC -ltinyxml -lnetcdf -lm
11 11 LDFLAGS = -fPIC
12 12 EXE = get_Orbit get_OMNI_1H get_ACE_RT get_R_LON_HCI WriteDDTime
... ... @@ -14,6 +14,7 @@ EXE = get_Orbit get_OMNI_1H get_ACE_RT get_R_LON_HCI WriteDDTime
14 14  
15 15 # ******************************** LINKING *********************************
16 16 all: $(EXE)
  17 + install -d -m a+rx,ug+w ${SW2ROOT}/Bin
17 18 cp $(EXE) ../Bin
18 19  
19 20 WriteDDTime: writeDDTime.o
... ... @@ -53,5 +54,5 @@ get_R_LON_HCI.o: get_R_LON_HCI.cpp
53 54  
54 55 # CLEAN
55 56 clean:
56   - rm -rf *.o
57   - rm -rf ${EXE}
58 57 \ No newline at end of file
  58 + rm -f *.o Prop_code/*.o
  59 + rm -f ${EXE} Prop_code/*.exe
59 60 \ No newline at end of file
... ...
Sources/Prop_code/Makefile
... ... @@ -6,6 +6,7 @@ OBJ1=main_sw1da_p.o sub_indat_p.o sub_slct_p.o sub_common.o
6 6 PRO1=main_sw1da_p.f sub_indat_p.f sub_slct_p.f sub_common.f
7 7  
8 8 all: $(EXE1)
  9 + install -d -m a+rx,ug+w ${SW2ROOT}/Bin
9 10 cp $(EXE1) ../../Bin/
10 11  
11 12 $(EXE1): $(OBJ1)
... ... @@ -15,4 +16,4 @@ $(OBJ1): $(PRO1)
15 16 $(FC) $(CFLAGS) -c $(PRO1)
16 17  
17 18 clean:
18   - rm *.o
  19 + rm *.o $(EXE1}
... ...
env.sh
1 1 #!/bin/bash
2 2  
3 3 # SOFT ROOT
4   -export SW2ROOT=/home/budnik/SolarWind2
  4 +export SW2ROOT=/home/budnik/SolarWind
5 5  
6 6 export DDUSER=budnik
7 7 export DDPWD=Sacre-Cour
... ...
runRequest
... ... @@ -13,7 +13,7 @@ SwStop=$5
13 13 rm -rf $SW2DATA/temp $SW2DATA/$tgt*
14 14  
15 15 # delete previous requests
16   - rm $REQ/*.xml
  16 + rm -f $REQ/*.xml
17 17  
18 18 cd $SW2ROOT/Bin.py; python makeRequest.py $tgt $tgt_vi $src_vi $TaoStop $SwStop > $tgt\.log
19 19 DDLogin $DDUSER $DDPWD > ddlog
... ...