This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
155 changed files
with
800 additions
and
608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.gitattributes text eol=lf | ||
.gitignore text eol=lf | ||
Makefile text eol=lf | ||
*.yml text eol=lf | ||
LICENSE text eol=lf | ||
*.ipynb text eol=lf | ||
*.txt text eol=lf | ||
*.py text eol=lf | ||
*.sh text eol=lf | ||
*.c text eol=lf | ||
*.cpp text eol=lf | ||
*.f text eol=lf | ||
*.f90 text eol=lf | ||
*.md text eol=lf | ||
*.rst text eol=lf | ||
*.csv text eol=lf | ||
*.m text eol=lf |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 13 additions & 13 deletions
26
transcar/dir.mfiles/big2little.m → dir.mfiles/big2little.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
function big2little(filein,fileout); | ||
|
||
fin=fopen(filein,'r','b'); | ||
|
||
if fin>0 | ||
fout=fopen(fileout,'w','l'); | ||
a=fread(fin,'int32'); | ||
fwrite(fout,a,'int32'); | ||
fclose(fin); | ||
fclose(fout); | ||
else | ||
disp(['erreur d''ouverture du fichier' filein]') | ||
end | ||
function big2little(filein,fileout); | ||
|
||
fin=fopen(filein,'r','b'); | ||
|
||
if fin>0 | ||
fout=fopen(fileout,'w','l'); | ||
a=fread(fin,'int32'); | ||
fwrite(fout,a,'int32'); | ||
fclose(fin); | ||
fclose(fout); | ||
else | ||
disp(['erreur d''ouverture du fichier' filein]') | ||
end |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
120 changes: 60 additions & 60 deletions
120
transcar/dir.mfiles/tube_path.m → dir.mfiles/tube_path.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
a=dir('*_*_*.mat'); | ||
filelist=[]; | ||
for i=1:length(a) | ||
filelist=[filelist;a(i).name]; | ||
end | ||
nbf=size(filelist);nbf=nbf(1); | ||
|
||
data_path=pwd; | ||
data_type='tra'; | ||
|
||
tube_time=[]; | ||
tubelon_time=[]; | ||
tubelat_time=[]; | ||
tubetmag_time=[]; | ||
tubelonmag_time=[]; | ||
tubelatmag_time=[]; | ||
tubeEnord_time=[]; | ||
tubeEest_time=[]; | ||
|
||
save tube tube_time tubelon_time tubelat_time ... | ||
tubetmag_time tubelonmag_time tubelatmag_time ... | ||
tubeEnord_time tubeEest_time | ||
for ifile=1:nbf | ||
file=filelist(ifile,:) | ||
giveno | ||
close all | ||
load tube | ||
ntime=length(time); | ||
tube_time(1:ntime,ifile)=time(:); | ||
tubelon_time(1:ntime,ifile)=lon_time(:); | ||
tubelat_time(1:ntime,ifile)=lat_time(:); | ||
tubetmag_time(1:ntime,ifile)=tmag_time(:); | ||
tubelonmag_time(1:ntime,ifile)=lonmag_time(:); | ||
tubelatmag_time(1:ntime,ifile)=latmag_time(:); | ||
tubeEnord_time(1:ntime,ifile)=Enord_time(:); | ||
tubeEest_time(1:ntime,ifile)=Eest_time(:); | ||
|
||
save tube tube_time tubelon_time tubelat_time ... | ||
tubetmag_time tubelonmag_time tubelatmag_time ... | ||
tubeEnord_time tubeEest_time | ||
|
||
end | ||
|
||
i=find(~tube_time(end,:)); | ||
tube_time(end,i)=tube_time(end-1,i); | ||
tube_time(end,i)=tube_time(end-1,i); | ||
tubelon_time(end,i)=tubelon_time(end-1,i); | ||
tubelat_time(end,i)=tubelat_time(end-1,i); | ||
tubetmag_time(end,i)=tubetmag_time(end-1,i); | ||
tubelonmag_time(end,i)=tubelonmag_time(end-1,i); | ||
tubelatmag_time(end,i)=tubelatmag_time(end-1,i); | ||
tubeEnord_time(end,i)=tubeEnord_time(end-1,i); | ||
tubeEest_time(end,i)=tubeEest_time(end-1,i); | ||
|
||
save tube tube_time tubelon_time tubelat_time ... | ||
tubetmag_time tubelonmag_time tubelatmag_time ... | ||
tubeEnord_time tubeEest_time | ||
|
||
clear all | ||
load tube | ||
a=dir('*_*_*.mat'); | ||
filelist=[]; | ||
for i=1:length(a) | ||
filelist=[filelist;a(i).name]; | ||
end | ||
nbf=size(filelist);nbf=nbf(1); | ||
|
||
data_path=pwd; | ||
data_type='tra'; | ||
|
||
tube_time=[]; | ||
tubelon_time=[]; | ||
tubelat_time=[]; | ||
tubetmag_time=[]; | ||
tubelonmag_time=[]; | ||
tubelatmag_time=[]; | ||
tubeEnord_time=[]; | ||
tubeEest_time=[]; | ||
|
||
save tube tube_time tubelon_time tubelat_time ... | ||
tubetmag_time tubelonmag_time tubelatmag_time ... | ||
tubeEnord_time tubeEest_time | ||
for ifile=1:nbf | ||
file=filelist(ifile,:) | ||
giveno | ||
close all | ||
load tube | ||
ntime=length(time); | ||
tube_time(1:ntime,ifile)=time(:); | ||
tubelon_time(1:ntime,ifile)=lon_time(:); | ||
tubelat_time(1:ntime,ifile)=lat_time(:); | ||
tubetmag_time(1:ntime,ifile)=tmag_time(:); | ||
tubelonmag_time(1:ntime,ifile)=lonmag_time(:); | ||
tubelatmag_time(1:ntime,ifile)=latmag_time(:); | ||
tubeEnord_time(1:ntime,ifile)=Enord_time(:); | ||
tubeEest_time(1:ntime,ifile)=Eest_time(:); | ||
|
||
save tube tube_time tubelon_time tubelat_time ... | ||
tubetmag_time tubelonmag_time tubelatmag_time ... | ||
tubeEnord_time tubeEest_time | ||
|
||
end | ||
|
||
i=find(~tube_time(end,:)); | ||
tube_time(end,i)=tube_time(end-1,i); | ||
tube_time(end,i)=tube_time(end-1,i); | ||
tubelon_time(end,i)=tubelon_time(end-1,i); | ||
tubelat_time(end,i)=tubelat_time(end-1,i); | ||
tubetmag_time(end,i)=tubetmag_time(end-1,i); | ||
tubelonmag_time(end,i)=tubelonmag_time(end-1,i); | ||
tubelatmag_time(end,i)=tubelatmag_time(end-1,i); | ||
tubeEnord_time(end,i)=tubeEnord_time(end-1,i); | ||
tubeEest_time(end,i)=tubeEest_time(end-1,i); | ||
|
||
save tube tube_time tubelon_time tubelat_time ... | ||
tubetmag_time tubelonmag_time tubelatmag_time ... | ||
tubeEnord_time tubeEest_time | ||
|
||
clear all | ||
load tube |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
cmake_minimum_required(VERSION 2.8.12) | ||
project(transcar Fortran) | ||
|
||
add_compile_options(-march=native -Wline-truncation -g -fbacktrace) | ||
|
||
# compiler dependent flags necessary for disk files used (sorry) | ||
if(${CMAKE_Fortran_COMPILER_ID} MATCHES GNU) | ||
add_compile_options(-frecord-marker=4 -std=legacy)# -Warray-bounds=2) | ||
elseif(${CMAKE_Fortran_COMPILER_ID} MATCHES Intel) | ||
add_compile_options(-assume byterecl) | ||
elseif(${CMAKE_Fortran_COMPILER_ID} MATCHES PGI) | ||
#already assumes byterecl | ||
else() | ||
message(WARNING "${CMAKE_Fortran_COMPILER_ID} unknown compiler type, disk options may be invalid") | ||
endif() | ||
|
||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ../..) | ||
|
||
include_directories(dir.include) | ||
|
||
add_executable(transconvec_13.op.out ../transconvec_13.op.f ../reacrates.f) | ||
target_link_libraries(transconvec_13.op.out fluide numeric system proj | ||
convec geomag transelec imm) | ||
|
||
#---- build libraries ---------- | ||
set(c ../dir.fluide) | ||
add_library(fluide ${c}/atmos.op.f ${c}/vent.f ${c}/msis90.f ${c}/coskhi.f ${c}/fchap.f) | ||
|
||
set(c ../dir.numeric) | ||
add_library(numeric ${c}/lcpfct.f ${c}/stabenerg.f90 ${c}/pas_de_temps.f | ||
${c}/solve_ODE.f90 ${c}/balanc.f ${c}/balbak.f ${c}/elmhes.f | ||
${c}/eltran.f ${c}/hqr2.f ${c}/cdiv.f) | ||
|
||
set(c ../dir.system) | ||
add_library(system ${c}/isnan.f90 ../dir.fluide/jour_mois.f ../dir.cine/misc.f) | ||
|
||
set(c ../dir.projection) | ||
add_library(proj ${c}/projection.f90 ${c}/val_fit.f90 ${c}/plegendr.f | ||
${c}/coef_prec.f ${c}/coef_pot.f ${c}/coef_cour.f | ||
${c}/precipitation.f90 ${c}/potentiel.f90 | ||
${c}/courant.f90 ../dir.cine/hardelec.f) | ||
|
||
set(c ../dir.convection) | ||
add_library(convec ${c}/convec.f ${c}/convec_1.f ${c}/conv_ar.f) | ||
target_link_libraries(convec proj) | ||
|
||
set(c ../dir.geomag) | ||
add_library(geomag ${c}/geo2mag.f ${c}/lec_indices.f90 ${c}/ap2kp.f | ||
${c}/magfild.f ${c}/shellig.f) | ||
|
||
set(c ../dir.cine) | ||
add_library(transelec ${c}/transelec.op.f ${c}/lect.f ${c}/iniflu.f | ||
${c}/degrad.f ${c}/felin.op.f | ||
${c}/solflux.f ${c}/trans.op.f ${c}/disort.f ${c}/cineout.op.f | ||
${c}/linsub.f ${c}/quelle_grille.f ${c}/quel_flux.f | ||
${c}/flux_val.f ${c}/hardion.f | ||
${c}/dir.iri/iris12.f ${c}/dir.iri/irif12.f ${c}/dir.iri/cira86_pour_iri.f | ||
${c}/ecr.f ${c}/prec_time.f ${c}/conduc.f | ||
${c}/dE_dt.f ${c}/low_proton.f ${c}/prot.f) | ||
target_link_libraries(transelec system fluide) | ||
|
||
add_library(imm ../dir.imm/IMM2.f90 ../dir.imm/IMM_routines.f90) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.