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
class ColdGasDatasetSeries(DatasetSeries): | |
def __init__(self, *args, icold=None, **kwa): | |
kwa['setup_function'] = self.deposit_cells | |
def deposit_cells(self, ds): | |
def generate(cell_field, units): | |
def loc(field, data): | |
ptype = field.name[0] | |
cell_pos = np.array( |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/bash | |
# Synchronize RAMSES outputs between two servers | |
# ============================================== | |
# | |
# Backup RAMSES outputs from one server to another one with a progress | |
# bar. The scripts assumes that the remote server is using slurm as a | |
# task manager (sbatch, squeue are available). For all running jobs, | |
# it will synchronize all (but last) outputs, removing the files once |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python3 | |
import numpy as np | |
from cython_fortran_file import FortranFile as FF | |
import argparse | |
import pandas as pd | |
PROPERTIES = 'm x y z vx vy vz jx jy jz dMBHoverdt dMEdoverdt dMsmbh d_avgptr c_avgptr v_avgptr spinx spiny spinz spinmag eps_sink' | |
parser = argparse.ArgumentParser( |
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
#!/usr/bin/env python3 | |
import numpy as np | |
from cython_fortran_file import FortranFile as FF | |
import argparse | |
import pandas as pd | |
PROPERTIES = 'm x y z vx vy vz jx jy jz dMBHoverdt dMEdoverdt dMsmbh d_avgptr c_avgptr v_avgptr spinx spiny spinz spinmag eps_sink' | |
parser = argparse.ArgumentParser( |
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
import yt | |
import re | |
def quick_particle_filter(magic, name, ds=None, filtered_type='io'): | |
'''Quickly generate a particle filter. | |
Parameters | |
---------- | |
magic : string |
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
mpif90 -O3 -Warray-temporaries -std=f2008 -Wall test_mpi.f90 -o test_mpi | |
mpirun -np ./test_mpi |
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
# Complete some frequent commands | |
_script() | |
{ | |
local cur prev words cword | |
_init_completion || return | |
local IFS=$'\n' | |
_filedir |
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
# | |
# Defines transfer alias and provides easy command line file and folder sharing. | |
# | |
# Authors: | |
# Remco Verhoef <[email protected]> | |
# | |
# Modified by Corentin Cadiou <[email protected]> | |
# | |
curl --version 2>&1 > /dev/null |