小编cm2*_*cm2的帖子

如何开始通过git提交到bitbucket - 没有看到变化

也许我正在解决这个问题,但我正在按照git教程进行操作.我在bitbucket上有一个名为"testrepos"的存储库,我正在尝试使用它.

首先,我用它克隆它 git clone https://my_username@bitbucket.org/my_username/testrepos.git

现在,repo是空的,所以我创建了一个名为main.cpp的文件.然后我运行"git add main.cpp".如果我git status现在运行,我会看到有一个名为main.cpp的新文件要提交.

最后,我跑了git commit -m 'First commit'.有0个更改,0个插入和0个删除!为什么我的文件没有提交?我使用push,并pull为好.

编辑这是完整的日志:

Welcome to Git (version 1.7.7-preview20111014)

Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.

chris@EDI ~
$ cd git

chris@EDI ~/git
$ git clone https://my_username@bitbucket.org/my_username/testrepos.git
Cloning into testrepos...
Password:
warning: You appear to have cloned an empty repository.

chris@EDI ~/git
$ cd testrepos/

chris@EDI ~/git/testrepos (master) …
Run Code Online (Sandbox Code Playgroud)

git version-control

11
推荐指数
1
解决办法
2万
查看次数

F2PY - 从子程序访问模块参数

我不能让f2py在单独的子例程中引用模​​块中的参数,在子例程中它用于定义输入数组维度.即参数在一个模块中是失败的:

! File: testmod.f90
MODULE testmod
INTEGER, PARAMETER :: dimsize = 20
END MODULE testmod
Run Code Online (Sandbox Code Playgroud)

并且参数dimsize需要在另一个文件的子例程(不包含在模块中)中引用,该文件将是我的python模块的入口点:

! File testsub.f90
SUBROUTINE testsub(arg)
USE testmod
REAL, INTENT(IN) :: arg(dimsize)
END SUBROUTINE testsub
Run Code Online (Sandbox Code Playgroud)

我像这样编译:

f2py -m testmod  -h testmod.pyf testsub.f90
pgf90 -g -Mbounds -Mchkptr -c -fPIC testmod.f90 -o testmod.o
pgf90 -g -Mbounds -Mchkptr -c -fPIC testsub.f90 -o testsub.o
f2py -c testmod.pyf testmod.o testsub.o
Run Code Online (Sandbox Code Playgroud)

但得到这个错误:

testmodmodule.c: In function 'f2py_rout_testmod_testsub':
testmodmodule.c:180: error: 'dimsize' undeclared (first use in this function)
Run Code Online (Sandbox Code Playgroud)

我已经尝试修改testsub.g90以包含以下指令,如其他建议ni:

SUBROUTINE testsub(arg)
USE testmod
!f2py …
Run Code Online (Sandbox Code Playgroud)

python fortran f2py

8
推荐指数
1
解决办法
1234
查看次数

Emacs:通过crontab批量处理组织模式文件

我是org-mode的新手,用几种语言用Babel写了一个文件.我希望每天在远程服务器上运行org文件中的代码文件 - 我认为这不重要.

我想用cron做这件事.我正在尝试类似的东西

crontab emacs -batch -l my_file.org

emacs crontab org-mode

6
推荐指数
1
解决办法
855
查看次数

标签 统计

crontab ×1

emacs ×1

f2py ×1

fortran ×1

git ×1

org-mode ×1

python ×1

version-control ×1